Skip to content
Snippets Groups Projects
Commit d0ba3251 authored by Rick Waldron's avatar Rick Waldron
Browse files

Restore migration to assert.sameValue

parent a2f44c71
No related branches found
No related tags found
No related merge requests found
......@@ -42,17 +42,11 @@ for (let letter of invalidControls()) {
var char = letter.charCodeAt(0);
var str = String.fromCharCode(char % 32);
var arr = re.exec(str);
if (arr !== null) {
$ERROR(`Character ${letter} unreasonably wrapped around as a control character`);
}
}
arr = re.exec(source.substring(1))
if (arr !== null) {
$ERROR(`invalid \\c escape matched c rather than \\c when followed by ${letter}`);
}
arr = re.exec(source)
if (arr === null) {
$ERROR(`invalid \\c escape failed to match \\c when followed by ${letter}`);
assert.sameValue(arr, null, `Character ${letter} unreasonably wrapped around as a control character`);
}
arr = re.exec(source.substring(1));
assert.sameValue(arr, null, `invalid \\c escape matched c rather than \\c when followed by ${letter}`);
arr = re.exec(source);
assert.notSameValue(arr, null, `invalid \\c escape failed to match \\c when followed by ${letter}`);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment