Skip to content
Snippets Groups Projects
Commit f21ac560 authored by littledan's avatar littledan Committed by Tom Care
Browse files

Fix call to assert.notSameValue (#859)

Thanks to @demurgos for spotting this bug at #858
parent 91ba9a0a
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,6 @@ description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'"
var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
for (var k = 0; k < non_ident.length; ++k) {
var arr = new RegExp("\\" + non_ident[k], "g").exec(non_ident);
assert.notSameValue(null, "No match for character: " + non_ident[k]);
assert.notSameValue(arr, null, "No match for character: " + non_ident[k]);
assert.sameValue(arr[0], non_ident[k]);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment