Fix call to assert.notSameValue (#859)

Thanks to @demurgos for spotting this bug at #858
This commit is contained in:
littledan 2017-02-13 22:48:38 +01:00 committed by Tom Care
parent 91ba9a0a25
commit f21ac5609b
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
}