blob: c3242c7924ffd391da7c1b9f8d77d7e1e6a126d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
load("test-common.js");
try {
assert("\x55" === "U");
assert("X55" === "X55");
assert(`\x55` === "U");
assert(`\X55` === "X55");
assert("\u26a0" === "⚠");
assert(`\u26a0` === "⚠");
assert("\u{1f41e}" === "🐞");
assert(`\u{1f41e}` === "🐞");
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}
|