mirror of
https://github.com/tc39/test262.git
synced 2025-07-20 20:44:43 +02:00
Fix call to assert.notSameValue (#859)
Thanks to @demurgos for spotting this bug at #858
This commit is contained in:
parent
91ba9a0a25
commit
f21ac5609b
@ -13,6 +13,6 @@ description: "Tested string is \"~`!@#$%^&*()-+={[}]|\\\\:;'<,>./?\" + '\"'"
|
|||||||
var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
|
var non_ident = "~`!@#$%^&*()-+={[}]|\\:;'<,>./?" + '"';
|
||||||
for (var k = 0; k < non_ident.length; ++k) {
|
for (var k = 0; k < non_ident.length; ++k) {
|
||||||
var arr = new RegExp("\\" + non_ident[k], "g").exec(non_ident);
|
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]);
|
assert.sameValue(arr[0], non_ident[k]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user