mirror of https://github.com/tc39/test262.git
use mixed quotes to avoid escape sequences in messages
This commit is contained in:
parent
30e192da57
commit
5cffebca94
|
@ -21,7 +21,7 @@ assert.sameValue(0n != null, true, "0n != null");
|
|||
assert.sameValue(null != 0n, true, "null != 0n");
|
||||
assert.sameValue(1n != null, true, "1n != null");
|
||||
assert.sameValue(null != 1n, true, "null != 1n");
|
||||
assert.sameValue(0n != Symbol("1"), true, "0n != Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") != 0n, true, "Symbol(\"1\") != 0n");
|
||||
assert.sameValue(1n != Symbol("1"), true, "1n != Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") != 1n, true, "Symbol(\"1\") != 1n");
|
||||
assert.sameValue(0n != Symbol("1"), true, '0n != Symbol("1")');
|
||||
assert.sameValue(Symbol("1") != 0n, true, 'Symbol("1") != 0n');
|
||||
assert.sameValue(1n != Symbol("1"), true, '1n != Symbol("1")');
|
||||
assert.sameValue(Symbol("1") != 1n, true, 'Symbol("1") != 1n');
|
||||
|
|
|
@ -42,15 +42,15 @@ assert.sameValue(0n != {valueOf: function() { return 0n; }}, false, "0n != {valu
|
|||
assert.sameValue({valueOf: function() { return 0n; }} != 0n, false, "{valueOf: function() { return 0n; }} != 0n");
|
||||
assert.sameValue(0n != {valueOf: function() { return 1n; }}, true, "0n != {valueOf: function() { return 1n; }}");
|
||||
assert.sameValue({valueOf: function() { return 1n; }} != 0n, true, "{valueOf: function() { return 1n; }} != 0n");
|
||||
assert.sameValue(0n != {toString: function() { return "0"; }}, false, "0n != {toString: function() { return \"0\"; }}");
|
||||
assert.sameValue({toString: function() { return "0"; }} != 0n, false, "{toString: function() { return \"0\"; }} != 0n");
|
||||
assert.sameValue(0n != {toString: function() { return "1"; }}, true, "0n != {toString: function() { return \"1\"; }}");
|
||||
assert.sameValue({toString: function() { return "1"; }} != 0n, true, "{toString: function() { return \"1\"; }} != 0n");
|
||||
assert.sameValue(0n != {toString: function() { return "0"; }}, false, '0n != {toString: function() { return "0"; }}');
|
||||
assert.sameValue({toString: function() { return "0"; }} != 0n, false, '{toString: function() { return "0"; }} != 0n');
|
||||
assert.sameValue(0n != {toString: function() { return "1"; }}, true, '0n != {toString: function() { return "1"; }}');
|
||||
assert.sameValue({toString: function() { return "1"; }} != 0n, true, '{toString: function() { return "1"; }} != 0n');
|
||||
assert.sameValue(900719925474099101n != {valueOf: function() { return 900719925474099101n; }}, false, "900719925474099101n != {valueOf: function() { return 900719925474099101n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099101n; }} != 900719925474099101n, false, "{valueOf: function() { return 900719925474099101n; }} != 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n != {valueOf: function() { return 900719925474099102n; }}, true, "900719925474099101n != {valueOf: function() { return 900719925474099102n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099102n; }} != 900719925474099101n, true, "{valueOf: function() { return 900719925474099102n; }} != 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n != {toString: function() { return "900719925474099101"; }}, false, "900719925474099101n != {toString: function() { return \"900719925474099101\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} != 900719925474099101n, false, "{toString: function() { return \"900719925474099101\"; }} != 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n != {toString: function() { return "900719925474099102"; }}, true, "900719925474099101n != {toString: function() { return \"900719925474099102\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} != 900719925474099101n, true, "{toString: function() { return \"900719925474099102\"; }} != 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n != {toString: function() { return "900719925474099101"; }}, false, '900719925474099101n != {toString: function() { return "900719925474099101"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} != 900719925474099101n, false, '{toString: function() { return "900719925474099101"; }} != 900719925474099101n');
|
||||
assert.sameValue(900719925474099101n != {toString: function() { return "900719925474099102"; }}, true, '900719925474099101n != {toString: function() { return "900719925474099102"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} != 900719925474099101n, true, '{toString: function() { return "900719925474099102"; }} != 900719925474099101n');
|
||||
|
|
|
@ -10,39 +10,39 @@ info: |
|
|||
features: [BigInt]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0n != "", false, "0n != \"\"");
|
||||
assert.sameValue("" != 0n, false, "\"\" != 0n");
|
||||
assert.sameValue(0n != "-0", false, "0n != \"-0\"");
|
||||
assert.sameValue("-0" != 0n, false, "\"-0\" != 0n");
|
||||
assert.sameValue(0n != "0", false, "0n != \"0\"");
|
||||
assert.sameValue("0" != 0n, false, "\"0\" != 0n");
|
||||
assert.sameValue(0n != "-1", true, "0n != \"-1\"");
|
||||
assert.sameValue("-1" != 0n, true, "\"-1\" != 0n");
|
||||
assert.sameValue(0n != "1", true, "0n != \"1\"");
|
||||
assert.sameValue("1" != 0n, true, "\"1\" != 0n");
|
||||
assert.sameValue(0n != "foo", true, "0n != \"foo\"");
|
||||
assert.sameValue("foo" != 0n, true, "\"foo\" != 0n");
|
||||
assert.sameValue(1n != "", true, "1n != \"\"");
|
||||
assert.sameValue("" != 1n, true, "\"\" != 1n");
|
||||
assert.sameValue(1n != "-0", true, "1n != \"-0\"");
|
||||
assert.sameValue("-0" != 1n, true, "\"-0\" != 1n");
|
||||
assert.sameValue(1n != "0", true, "1n != \"0\"");
|
||||
assert.sameValue("0" != 1n, true, "\"0\" != 1n");
|
||||
assert.sameValue(1n != "-1", true, "1n != \"-1\"");
|
||||
assert.sameValue("-1" != 1n, true, "\"-1\" != 1n");
|
||||
assert.sameValue(1n != "1", false, "1n != \"1\"");
|
||||
assert.sameValue("1" != 1n, false, "\"1\" != 1n");
|
||||
assert.sameValue(1n != "foo", true, "1n != \"foo\"");
|
||||
assert.sameValue("foo" != 1n, true, "\"foo\" != 1n");
|
||||
assert.sameValue(-1n != "-", true, "-1n != \"-\"");
|
||||
assert.sameValue("-" != -1n, true, "\"-\" != -1n");
|
||||
assert.sameValue(-1n != "-0", true, "-1n != \"-0\"");
|
||||
assert.sameValue("-0" != -1n, true, "\"-0\" != -1n");
|
||||
assert.sameValue(-1n != "-1", false, "-1n != \"-1\"");
|
||||
assert.sameValue("-1" != -1n, false, "\"-1\" != -1n");
|
||||
assert.sameValue(-1n != "-foo", true, "-1n != \"-foo\"");
|
||||
assert.sameValue("-foo" != -1n, true, "\"-foo\" != -1n");
|
||||
assert.sameValue(900719925474099101n != "900719925474099101", false, "900719925474099101n != \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" != 900719925474099101n, false, "\"900719925474099101\" != 900719925474099101n");
|
||||
assert.sameValue(900719925474099102n != "900719925474099101", true, "900719925474099102n != \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" != 900719925474099102n, true, "\"900719925474099101\" != 900719925474099102n");
|
||||
assert.sameValue(0n != "", false, '0n != ""');
|
||||
assert.sameValue("" != 0n, false, '"" != 0n');
|
||||
assert.sameValue(0n != "-0", false, '0n != "-0"');
|
||||
assert.sameValue("-0" != 0n, false, '"-0" != 0n');
|
||||
assert.sameValue(0n != "0", false, '0n != "0"');
|
||||
assert.sameValue("0" != 0n, false, '"0" != 0n');
|
||||
assert.sameValue(0n != "-1", true, '0n != "-1"');
|
||||
assert.sameValue("-1" != 0n, true, '"-1" != 0n');
|
||||
assert.sameValue(0n != "1", true, '0n != "1"');
|
||||
assert.sameValue("1" != 0n, true, '"1" != 0n');
|
||||
assert.sameValue(0n != "foo", true, '0n != "foo"');
|
||||
assert.sameValue("foo" != 0n, true, '"foo" != 0n');
|
||||
assert.sameValue(1n != "", true, '1n != ""');
|
||||
assert.sameValue("" != 1n, true, '"" != 1n');
|
||||
assert.sameValue(1n != "-0", true, '1n != "-0"');
|
||||
assert.sameValue("-0" != 1n, true, '"-0" != 1n');
|
||||
assert.sameValue(1n != "0", true, '1n != "0"');
|
||||
assert.sameValue("0" != 1n, true, '"0" != 1n');
|
||||
assert.sameValue(1n != "-1", true, '1n != "-1"');
|
||||
assert.sameValue("-1" != 1n, true, '"-1" != 1n');
|
||||
assert.sameValue(1n != "1", false, '1n != "1"');
|
||||
assert.sameValue("1" != 1n, false, '"1" != 1n');
|
||||
assert.sameValue(1n != "foo", true, '1n != "foo"');
|
||||
assert.sameValue("foo" != 1n, true, '"foo" != 1n');
|
||||
assert.sameValue(-1n != "-", true, '-1n != "-"');
|
||||
assert.sameValue("-" != -1n, true, '"-" != -1n');
|
||||
assert.sameValue(-1n != "-0", true, '-1n != "-0"');
|
||||
assert.sameValue("-0" != -1n, true, '"-0" != -1n');
|
||||
assert.sameValue(-1n != "-1", false, '-1n != "-1"');
|
||||
assert.sameValue("-1" != -1n, false, '"-1" != -1n');
|
||||
assert.sameValue(-1n != "-foo", true, '-1n != "-foo"');
|
||||
assert.sameValue("-foo" != -1n, true, '"-foo" != -1n');
|
||||
assert.sameValue(900719925474099101n != "900719925474099101", false, '900719925474099101n != "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" != 900719925474099101n, false, '"900719925474099101" != 900719925474099101n');
|
||||
assert.sameValue(900719925474099102n != "900719925474099101", true, '900719925474099102n != "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" != 900719925474099102n, true, '"900719925474099101" != 900719925474099102n');
|
||||
|
|
|
@ -20,7 +20,7 @@ assert.sameValue(0n == null, false, "0n == null");
|
|||
assert.sameValue(null == 0n, false, "null == 0n");
|
||||
assert.sameValue(1n == null, false, "1n == null");
|
||||
assert.sameValue(null == 1n, false, "null == 1n");
|
||||
assert.sameValue(0n == Symbol("1"), false, "0n == Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") == 0n, false, "Symbol(\"1\") == 0n");
|
||||
assert.sameValue(1n == Symbol("1"), false, "1n == Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") == 1n, false, "Symbol(\"1\") == 1n");
|
||||
assert.sameValue(0n == Symbol("1"), false, '0n == Symbol("1")');
|
||||
assert.sameValue(Symbol("1") == 0n, false, 'Symbol("1") == 0n');
|
||||
assert.sameValue(1n == Symbol("1"), false, '1n == Symbol("1")');
|
||||
assert.sameValue(Symbol("1") == 1n, false, 'Symbol("1") == 1n');
|
||||
|
|
|
@ -42,15 +42,15 @@ assert.sameValue(0n == {valueOf: function() { return 0n; }}, true, "0n == {value
|
|||
assert.sameValue({valueOf: function() { return 0n; }} == 0n, true, "{valueOf: function() { return 0n; }} == 0n");
|
||||
assert.sameValue(0n == {valueOf: function() { return 1n; }}, false, "0n == {valueOf: function() { return 1n; }}");
|
||||
assert.sameValue({valueOf: function() { return 1n; }} == 0n, false, "{valueOf: function() { return 1n; }} == 0n");
|
||||
assert.sameValue(0n == {toString: function() { return "0"; }}, true, "0n == {toString: function() { return \"0\"; }}");
|
||||
assert.sameValue({toString: function() { return "0"; }} == 0n, true, "{toString: function() { return \"0\"; }} == 0n");
|
||||
assert.sameValue(0n == {toString: function() { return "1"; }}, false, "0n == {toString: function() { return \"1\"; }}");
|
||||
assert.sameValue({toString: function() { return "1"; }} == 0n, false, "{toString: function() { return \"1\"; }} == 0n");
|
||||
assert.sameValue(0n == {toString: function() { return "0"; }}, true, '0n == {toString: function() { return "0"; }}');
|
||||
assert.sameValue({toString: function() { return "0"; }} == 0n, true, '{toString: function() { return "0"; }} == 0n');
|
||||
assert.sameValue(0n == {toString: function() { return "1"; }}, false, '0n == {toString: function() { return "1"; }}');
|
||||
assert.sameValue({toString: function() { return "1"; }} == 0n, false, '{toString: function() { return "1"; }} == 0n');
|
||||
assert.sameValue(900719925474099101n == {valueOf: function() { return 900719925474099101n; }}, true, "900719925474099101n == {valueOf: function() { return 900719925474099101n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099101n; }} == 900719925474099101n, true, "{valueOf: function() { return 900719925474099101n; }} == 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n == {valueOf: function() { return 900719925474099102n; }}, false, "900719925474099101n == {valueOf: function() { return 900719925474099102n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099102n; }} == 900719925474099101n, false, "{valueOf: function() { return 900719925474099102n; }} == 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n == {toString: function() { return "900719925474099101"; }}, true, "900719925474099101n == {toString: function() { return \"900719925474099101\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} == 900719925474099101n, true, "{toString: function() { return \"900719925474099101\"; }} == 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n == {toString: function() { return "900719925474099102"; }}, false, "900719925474099101n == {toString: function() { return \"900719925474099102\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} == 900719925474099101n, false, "{toString: function() { return \"900719925474099102\"; }} == 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n == {toString: function() { return "900719925474099101"; }}, true, '900719925474099101n == {toString: function() { return "900719925474099101"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} == 900719925474099101n, true, '{toString: function() { return "900719925474099101"; }} == 900719925474099101n');
|
||||
assert.sameValue(900719925474099101n == {toString: function() { return "900719925474099102"; }}, false, '900719925474099101n == {toString: function() { return "900719925474099102"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} == 900719925474099101n, false, '{toString: function() { return "900719925474099102"; }} == 900719925474099101n');
|
||||
|
|
|
@ -10,39 +10,39 @@ info: |
|
|||
features: [BigInt]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0n == "", true, "0n == \"\"");
|
||||
assert.sameValue("" == 0n, true, "\"\" == 0n");
|
||||
assert.sameValue(0n == "-0", true, "0n == \"-0\"");
|
||||
assert.sameValue("-0" == 0n, true, "\"-0\" == 0n");
|
||||
assert.sameValue(0n == "0", true, "0n == \"0\"");
|
||||
assert.sameValue("0" == 0n, true, "\"0\" == 0n");
|
||||
assert.sameValue(0n == "-1", false, "0n == \"-1\"");
|
||||
assert.sameValue("-1" == 0n, false, "\"-1\" == 0n");
|
||||
assert.sameValue(0n == "1", false, "0n == \"1\"");
|
||||
assert.sameValue("1" == 0n, false, "\"1\" == 0n");
|
||||
assert.sameValue(0n == "foo", false, "0n == \"foo\"");
|
||||
assert.sameValue("foo" == 0n, false, "\"foo\" == 0n");
|
||||
assert.sameValue(1n == "", false, "1n == \"\"");
|
||||
assert.sameValue("" == 1n, false, "\"\" == 1n");
|
||||
assert.sameValue(1n == "-0", false, "1n == \"-0\"");
|
||||
assert.sameValue("-0" == 1n, false, "\"-0\" == 1n");
|
||||
assert.sameValue(1n == "0", false, "1n == \"0\"");
|
||||
assert.sameValue("0" == 1n, false, "\"0\" == 1n");
|
||||
assert.sameValue(1n == "-1", false, "1n == \"-1\"");
|
||||
assert.sameValue("-1" == 1n, false, "\"-1\" == 1n");
|
||||
assert.sameValue(1n == "1", true, "1n == \"1\"");
|
||||
assert.sameValue("1" == 1n, true, "\"1\" == 1n");
|
||||
assert.sameValue(1n == "foo", false, "1n == \"foo\"");
|
||||
assert.sameValue("foo" == 1n, false, "\"foo\" == 1n");
|
||||
assert.sameValue(-1n == "-", false, "-1n == \"-\"");
|
||||
assert.sameValue("-" == -1n, false, "\"-\" == -1n");
|
||||
assert.sameValue(-1n == "-0", false, "-1n == \"-0\"");
|
||||
assert.sameValue("-0" == -1n, false, "\"-0\" == -1n");
|
||||
assert.sameValue(-1n == "-1", true, "-1n == \"-1\"");
|
||||
assert.sameValue("-1" == -1n, true, "\"-1\" == -1n");
|
||||
assert.sameValue(-1n == "-foo", false, "-1n == \"-foo\"");
|
||||
assert.sameValue("-foo" == -1n, false, "\"-foo\" == -1n");
|
||||
assert.sameValue(900719925474099101n == "900719925474099101", true, "900719925474099101n == \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" == 900719925474099101n, true, "\"900719925474099101\" == 900719925474099101n");
|
||||
assert.sameValue(900719925474099102n == "900719925474099101", false, "900719925474099102n == \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" == 900719925474099102n, false, "\"900719925474099101\" == 900719925474099102n");
|
||||
assert.sameValue(0n == "", true, '0n == ""');
|
||||
assert.sameValue("" == 0n, true, '"" == 0n');
|
||||
assert.sameValue(0n == "-0", true, '0n == "-0"');
|
||||
assert.sameValue("-0" == 0n, true, '"-0" == 0n');
|
||||
assert.sameValue(0n == "0", true, '0n == "0"');
|
||||
assert.sameValue("0" == 0n, true, '"0" == 0n');
|
||||
assert.sameValue(0n == "-1", false, '0n == "-1"');
|
||||
assert.sameValue("-1" == 0n, false, '"-1" == 0n');
|
||||
assert.sameValue(0n == "1", false, '0n == "1"');
|
||||
assert.sameValue("1" == 0n, false, '"1" == 0n');
|
||||
assert.sameValue(0n == "foo", false, '0n == "foo"');
|
||||
assert.sameValue("foo" == 0n, false, '"foo" == 0n');
|
||||
assert.sameValue(1n == "", false, '1n == ""');
|
||||
assert.sameValue("" == 1n, false, '"" == 1n');
|
||||
assert.sameValue(1n == "-0", false, '1n == "-0"');
|
||||
assert.sameValue("-0" == 1n, false, '"-0" == 1n');
|
||||
assert.sameValue(1n == "0", false, '1n == "0"');
|
||||
assert.sameValue("0" == 1n, false, '"0" == 1n');
|
||||
assert.sameValue(1n == "-1", false, '1n == "-1"');
|
||||
assert.sameValue("-1" == 1n, false, '"-1" == 1n');
|
||||
assert.sameValue(1n == "1", true, '1n == "1"');
|
||||
assert.sameValue("1" == 1n, true, '"1" == 1n');
|
||||
assert.sameValue(1n == "foo", false, '1n == "foo"');
|
||||
assert.sameValue("foo" == 1n, false, '"foo" == 1n');
|
||||
assert.sameValue(-1n == "-", false, '-1n == "-"');
|
||||
assert.sameValue("-" == -1n, false, '"-" == -1n');
|
||||
assert.sameValue(-1n == "-0", false, '-1n == "-0"');
|
||||
assert.sameValue("-0" == -1n, false, '"-0" == -1n');
|
||||
assert.sameValue(-1n == "-1", true, '-1n == "-1"');
|
||||
assert.sameValue("-1" == -1n, true, '"-1" == -1n');
|
||||
assert.sameValue(-1n == "-foo", false, '-1n == "-foo"');
|
||||
assert.sameValue("-foo" == -1n, false, '"-foo" == -1n');
|
||||
assert.sameValue(900719925474099101n == "900719925474099101", true, '900719925474099101n == "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" == 900719925474099101n, true, '"900719925474099101" == 900719925474099101n');
|
||||
assert.sameValue(900719925474099102n == "900719925474099101", false, '900719925474099102n == "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" == 900719925474099102n, false, '"900719925474099101" == 900719925474099102n');
|
||||
|
|
|
@ -18,7 +18,7 @@ assert.sameValue(0n !== null, true, "0n !== null");
|
|||
assert.sameValue(null !== 0n, true, "null !== 0n");
|
||||
assert.sameValue(1n !== null, true, "1n !== null");
|
||||
assert.sameValue(null !== 1n, true, "null !== 1n");
|
||||
assert.sameValue(0n !== Symbol("1"), true, "0n !== Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") !== 0n, true, "Symbol(\"1\") !== 0n");
|
||||
assert.sameValue(1n !== Symbol("1"), true, "1n !== Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") !== 1n, true, "Symbol(\"1\") !== 1n");
|
||||
assert.sameValue(0n !== Symbol("1"), true, '0n !== Symbol("1")');
|
||||
assert.sameValue(Symbol("1") !== 0n, true, 'Symbol("1") !== 0n');
|
||||
assert.sameValue(1n !== Symbol("1"), true, '1n !== Symbol("1")');
|
||||
assert.sameValue(Symbol("1") !== 1n, true, 'Symbol("1") !== 1n');
|
||||
|
|
|
@ -30,15 +30,15 @@ assert.sameValue(0n !== {valueOf: function() { return 0n; }}, true, "0n !== {val
|
|||
assert.sameValue({valueOf: function() { return 0n; }} !== 0n, true, "{valueOf: function() { return 0n; }} !== 0n");
|
||||
assert.sameValue(0n !== {valueOf: function() { return 1n; }}, true, "0n !== {valueOf: function() { return 1n; }}");
|
||||
assert.sameValue({valueOf: function() { return 1n; }} !== 0n, true, "{valueOf: function() { return 1n; }} !== 0n");
|
||||
assert.sameValue(0n !== {toString: function() { return "0"; }}, true, "0n !== {toString: function() { return \"0\"; }}");
|
||||
assert.sameValue({toString: function() { return "0"; }} !== 0n, true, "{toString: function() { return \"0\"; }} !== 0n");
|
||||
assert.sameValue(0n !== {toString: function() { return "1"; }}, true, "0n !== {toString: function() { return \"1\"; }}");
|
||||
assert.sameValue({toString: function() { return "1"; }} !== 0n, true, "{toString: function() { return \"1\"; }} !== 0n");
|
||||
assert.sameValue(0n !== {toString: function() { return "0"; }}, true, '0n !== {toString: function() { return "0"; }}');
|
||||
assert.sameValue({toString: function() { return "0"; }} !== 0n, true, '{toString: function() { return "0"; }} !== 0n');
|
||||
assert.sameValue(0n !== {toString: function() { return "1"; }}, true, '0n !== {toString: function() { return "1"; }}');
|
||||
assert.sameValue({toString: function() { return "1"; }} !== 0n, true, '{toString: function() { return "1"; }} !== 0n');
|
||||
assert.sameValue(900719925474099101n !== {valueOf: function() { return 900719925474099101n; }}, true, "900719925474099101n !== {valueOf: function() { return 900719925474099101n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099101n; }} !== 900719925474099101n, true, "{valueOf: function() { return 900719925474099101n; }} !== 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n !== {valueOf: function() { return 900719925474099102n; }}, true, "900719925474099101n !== {valueOf: function() { return 900719925474099102n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099102n; }} !== 900719925474099101n, true, "{valueOf: function() { return 900719925474099102n; }} !== 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n !== {toString: function() { return "900719925474099101"; }}, true, "900719925474099101n !== {toString: function() { return \"900719925474099101\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} !== 900719925474099101n, true, "{toString: function() { return \"900719925474099101\"; }} !== 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n !== {toString: function() { return "900719925474099102"; }}, true, "900719925474099101n !== {toString: function() { return \"900719925474099102\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} !== 900719925474099101n, true, "{toString: function() { return \"900719925474099102\"; }} !== 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n !== {toString: function() { return "900719925474099101"; }}, true, '900719925474099101n !== {toString: function() { return "900719925474099101"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} !== 900719925474099101n, true, '{toString: function() { return "900719925474099101"; }} !== 900719925474099101n');
|
||||
assert.sameValue(900719925474099101n !== {toString: function() { return "900719925474099102"; }}, true, '900719925474099101n !== {toString: function() { return "900719925474099102"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} !== 900719925474099101n, true, '{toString: function() { return "900719925474099102"; }} !== 900719925474099101n');
|
||||
|
|
|
@ -10,39 +10,39 @@ info: |
|
|||
features: [BigInt]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0n !== "", true, "0n !== \"\"");
|
||||
assert.sameValue("" !== 0n, true, "\"\" !== 0n");
|
||||
assert.sameValue(0n !== "-0", true, "0n !== \"-0\"");
|
||||
assert.sameValue("-0" !== 0n, true, "\"-0\" !== 0n");
|
||||
assert.sameValue(0n !== "0", true, "0n !== \"0\"");
|
||||
assert.sameValue("0" !== 0n, true, "\"0\" !== 0n");
|
||||
assert.sameValue(0n !== "-1", true, "0n !== \"-1\"");
|
||||
assert.sameValue("-1" !== 0n, true, "\"-1\" !== 0n");
|
||||
assert.sameValue(0n !== "1", true, "0n !== \"1\"");
|
||||
assert.sameValue("1" !== 0n, true, "\"1\" !== 0n");
|
||||
assert.sameValue(0n !== "foo", true, "0n !== \"foo\"");
|
||||
assert.sameValue("foo" !== 0n, true, "\"foo\" !== 0n");
|
||||
assert.sameValue(1n !== "", true, "1n !== \"\"");
|
||||
assert.sameValue("" !== 1n, true, "\"\" !== 1n");
|
||||
assert.sameValue(1n !== "-0", true, "1n !== \"-0\"");
|
||||
assert.sameValue("-0" !== 1n, true, "\"-0\" !== 1n");
|
||||
assert.sameValue(1n !== "0", true, "1n !== \"0\"");
|
||||
assert.sameValue("0" !== 1n, true, "\"0\" !== 1n");
|
||||
assert.sameValue(1n !== "-1", true, "1n !== \"-1\"");
|
||||
assert.sameValue("-1" !== 1n, true, "\"-1\" !== 1n");
|
||||
assert.sameValue(1n !== "1", true, "1n !== \"1\"");
|
||||
assert.sameValue("1" !== 1n, true, "\"1\" !== 1n");
|
||||
assert.sameValue(1n !== "foo", true, "1n !== \"foo\"");
|
||||
assert.sameValue("foo" !== 1n, true, "\"foo\" !== 1n");
|
||||
assert.sameValue(-1n !== "-", true, "-1n !== \"-\"");
|
||||
assert.sameValue("-" !== -1n, true, "\"-\" !== -1n");
|
||||
assert.sameValue(-1n !== "-0", true, "-1n !== \"-0\"");
|
||||
assert.sameValue("-0" !== -1n, true, "\"-0\" !== -1n");
|
||||
assert.sameValue(-1n !== "-1", true, "-1n !== \"-1\"");
|
||||
assert.sameValue("-1" !== -1n, true, "\"-1\" !== -1n");
|
||||
assert.sameValue(-1n !== "-foo", true, "-1n !== \"-foo\"");
|
||||
assert.sameValue("-foo" !== -1n, true, "\"-foo\" !== -1n");
|
||||
assert.sameValue(900719925474099101n !== "900719925474099101", true, "900719925474099101n !== \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" !== 900719925474099101n, true, "\"900719925474099101\" !== 900719925474099101n");
|
||||
assert.sameValue(900719925474099102n !== "900719925474099101", true, "900719925474099102n !== \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" !== 900719925474099102n, true, "\"900719925474099101\" !== 900719925474099102n");
|
||||
assert.sameValue(0n !== "", true, '0n !== ""');
|
||||
assert.sameValue("" !== 0n, true, '"" !== 0n');
|
||||
assert.sameValue(0n !== "-0", true, '0n !== "-0"');
|
||||
assert.sameValue("-0" !== 0n, true, '"-0" !== 0n');
|
||||
assert.sameValue(0n !== "0", true, '0n !== "0"');
|
||||
assert.sameValue("0" !== 0n, true, '"0" !== 0n');
|
||||
assert.sameValue(0n !== "-1", true, '0n !== "-1"');
|
||||
assert.sameValue("-1" !== 0n, true, '"-1" !== 0n');
|
||||
assert.sameValue(0n !== "1", true, '0n !== "1"');
|
||||
assert.sameValue("1" !== 0n, true, '"1" !== 0n');
|
||||
assert.sameValue(0n !== "foo", true, '0n !== "foo"');
|
||||
assert.sameValue("foo" !== 0n, true, '"foo" !== 0n');
|
||||
assert.sameValue(1n !== "", true, '1n !== ""');
|
||||
assert.sameValue("" !== 1n, true, '"" !== 1n');
|
||||
assert.sameValue(1n !== "-0", true, '1n !== "-0"');
|
||||
assert.sameValue("-0" !== 1n, true, '"-0" !== 1n');
|
||||
assert.sameValue(1n !== "0", true, '1n !== "0"');
|
||||
assert.sameValue("0" !== 1n, true, '"0" !== 1n');
|
||||
assert.sameValue(1n !== "-1", true, '1n !== "-1"');
|
||||
assert.sameValue("-1" !== 1n, true, '"-1" !== 1n');
|
||||
assert.sameValue(1n !== "1", true, '1n !== "1"');
|
||||
assert.sameValue("1" !== 1n, true, '"1" !== 1n');
|
||||
assert.sameValue(1n !== "foo", true, '1n !== "foo"');
|
||||
assert.sameValue("foo" !== 1n, true, '"foo" !== 1n');
|
||||
assert.sameValue(-1n !== "-", true, '-1n !== "-"');
|
||||
assert.sameValue("-" !== -1n, true, '"-" !== -1n');
|
||||
assert.sameValue(-1n !== "-0", true, '-1n !== "-0"');
|
||||
assert.sameValue("-0" !== -1n, true, '"-0" !== -1n');
|
||||
assert.sameValue(-1n !== "-1", true, '-1n !== "-1"');
|
||||
assert.sameValue("-1" !== -1n, true, '"-1" !== -1n');
|
||||
assert.sameValue(-1n !== "-foo", true, '-1n !== "-foo"');
|
||||
assert.sameValue("-foo" !== -1n, true, '"-foo" !== -1n');
|
||||
assert.sameValue(900719925474099101n !== "900719925474099101", true, '900719925474099101n !== "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" !== 900719925474099101n, true, '"900719925474099101" !== 900719925474099101n');
|
||||
assert.sameValue(900719925474099102n !== "900719925474099101", true, '900719925474099102n !== "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" !== 900719925474099102n, true, '"900719925474099101" !== 900719925474099102n');
|
||||
|
|
|
@ -18,7 +18,7 @@ assert.sameValue(0n === null, false, "0n === null");
|
|||
assert.sameValue(null === 0n, false, "null === 0n");
|
||||
assert.sameValue(1n === null, false, "1n === null");
|
||||
assert.sameValue(null === 1n, false, "null === 1n");
|
||||
assert.sameValue(0n === Symbol("1"), false, "0n === Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") === 0n, false, "Symbol(\"1\") === 0n");
|
||||
assert.sameValue(1n === Symbol("1"), false, "1n === Symbol(\"1\")");
|
||||
assert.sameValue(Symbol("1") === 1n, false, "Symbol(\"1\") === 1n");
|
||||
assert.sameValue(0n === Symbol("1"), false, '0n === Symbol("1")');
|
||||
assert.sameValue(Symbol("1") === 0n, false, 'Symbol("1") === 0n');
|
||||
assert.sameValue(1n === Symbol("1"), false, '1n === Symbol("1")');
|
||||
assert.sameValue(Symbol("1") === 1n, false, 'Symbol("1") === 1n');
|
||||
|
|
|
@ -30,15 +30,15 @@ assert.sameValue(0n === {valueOf: function() { return 0n; }}, false, "0n === {va
|
|||
assert.sameValue({valueOf: function() { return 0n; }} === 0n, false, "{valueOf: function() { return 0n; }} === 0n");
|
||||
assert.sameValue(0n === {valueOf: function() { return 1n; }}, false, "0n === {valueOf: function() { return 1n; }}");
|
||||
assert.sameValue({valueOf: function() { return 1n; }} === 0n, false, "{valueOf: function() { return 1n; }} === 0n");
|
||||
assert.sameValue(0n === {toString: function() { return "0"; }}, false, "0n === {toString: function() { return \"0\"; }}");
|
||||
assert.sameValue({toString: function() { return "0"; }} === 0n, false, "{toString: function() { return \"0\"; }} === 0n");
|
||||
assert.sameValue(0n === {toString: function() { return "1"; }}, false, "0n === {toString: function() { return \"1\"; }}");
|
||||
assert.sameValue({toString: function() { return "1"; }} === 0n, false, "{toString: function() { return \"1\"; }} === 0n");
|
||||
assert.sameValue(0n === {toString: function() { return "0"; }}, false, '0n === {toString: function() { return "0"; }}');
|
||||
assert.sameValue({toString: function() { return "0"; }} === 0n, false, '{toString: function() { return "0"; }} === 0n');
|
||||
assert.sameValue(0n === {toString: function() { return "1"; }}, false, '0n === {toString: function() { return "1"; }}');
|
||||
assert.sameValue({toString: function() { return "1"; }} === 0n, false, '{toString: function() { return "1"; }} === 0n');
|
||||
assert.sameValue(900719925474099101n === {valueOf: function() { return 900719925474099101n; }}, false, "900719925474099101n === {valueOf: function() { return 900719925474099101n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099101n; }} === 900719925474099101n, false, "{valueOf: function() { return 900719925474099101n; }} === 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n === {valueOf: function() { return 900719925474099102n; }}, false, "900719925474099101n === {valueOf: function() { return 900719925474099102n; }}");
|
||||
assert.sameValue({valueOf: function() { return 900719925474099102n; }} === 900719925474099101n, false, "{valueOf: function() { return 900719925474099102n; }} === 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n === {toString: function() { return "900719925474099101"; }}, false, "900719925474099101n === {toString: function() { return \"900719925474099101\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} === 900719925474099101n, false, "{toString: function() { return \"900719925474099101\"; }} === 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n === {toString: function() { return "900719925474099102"; }}, false, "900719925474099101n === {toString: function() { return \"900719925474099102\"; }}");
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} === 900719925474099101n, false, "{toString: function() { return \"900719925474099102\"; }} === 900719925474099101n");
|
||||
assert.sameValue(900719925474099101n === {toString: function() { return "900719925474099101"; }}, false, '900719925474099101n === {toString: function() { return "900719925474099101"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099101"; }} === 900719925474099101n, false, '{toString: function() { return "900719925474099101"; }} === 900719925474099101n');
|
||||
assert.sameValue(900719925474099101n === {toString: function() { return "900719925474099102"; }}, false, '900719925474099101n === {toString: function() { return "900719925474099102"; }}');
|
||||
assert.sameValue({toString: function() { return "900719925474099102"; }} === 900719925474099101n, false, '{toString: function() { return "900719925474099102"; }} === 900719925474099101n');
|
||||
|
|
|
@ -10,39 +10,39 @@ info: |
|
|||
features: [BigInt]
|
||||
---*/
|
||||
|
||||
assert.sameValue(0n === "", false, "0n === \"\"");
|
||||
assert.sameValue("" === 0n, false, "\"\" === 0n");
|
||||
assert.sameValue(0n === "-0", false, "0n === \"-0\"");
|
||||
assert.sameValue("-0" === 0n, false, "\"-0\" === 0n");
|
||||
assert.sameValue(0n === "0", false, "0n === \"0\"");
|
||||
assert.sameValue("0" === 0n, false, "\"0\" === 0n");
|
||||
assert.sameValue(0n === "-1", false, "0n === \"-1\"");
|
||||
assert.sameValue("-1" === 0n, false, "\"-1\" === 0n");
|
||||
assert.sameValue(0n === "1", false, "0n === \"1\"");
|
||||
assert.sameValue("1" === 0n, false, "\"1\" === 0n");
|
||||
assert.sameValue(0n === "foo", false, "0n === \"foo\"");
|
||||
assert.sameValue("foo" === 0n, false, "\"foo\" === 0n");
|
||||
assert.sameValue(1n === "", false, "1n === \"\"");
|
||||
assert.sameValue("" === 1n, false, "\"\" === 1n");
|
||||
assert.sameValue(1n === "-0", false, "1n === \"-0\"");
|
||||
assert.sameValue("-0" === 1n, false, "\"-0\" === 1n");
|
||||
assert.sameValue(1n === "0", false, "1n === \"0\"");
|
||||
assert.sameValue("0" === 1n, false, "\"0\" === 1n");
|
||||
assert.sameValue(1n === "-1", false, "1n === \"-1\"");
|
||||
assert.sameValue("-1" === 1n, false, "\"-1\" === 1n");
|
||||
assert.sameValue(1n === "1", false, "1n === \"1\"");
|
||||
assert.sameValue("1" === 1n, false, "\"1\" === 1n");
|
||||
assert.sameValue(1n === "foo", false, "1n === \"foo\"");
|
||||
assert.sameValue("foo" === 1n, false, "\"foo\" === 1n");
|
||||
assert.sameValue(-1n === "-", false, "-1n === \"-\"");
|
||||
assert.sameValue("-" === -1n, false, "\"-\" === -1n");
|
||||
assert.sameValue(-1n === "-0", false, "-1n === \"-0\"");
|
||||
assert.sameValue("-0" === -1n, false, "\"-0\" === -1n");
|
||||
assert.sameValue(-1n === "-1", false, "-1n === \"-1\"");
|
||||
assert.sameValue("-1" === -1n, false, "\"-1\" === -1n");
|
||||
assert.sameValue(-1n === "-foo", false, "-1n === \"-foo\"");
|
||||
assert.sameValue("-foo" === -1n, false, "\"-foo\" === -1n");
|
||||
assert.sameValue(900719925474099101n === "900719925474099101", false, "900719925474099101n === \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" === 900719925474099101n, false, "\"900719925474099101\" === 900719925474099101n");
|
||||
assert.sameValue(900719925474099102n === "900719925474099101", false, "900719925474099102n === \"900719925474099101\"");
|
||||
assert.sameValue("900719925474099101" === 900719925474099102n, false, "\"900719925474099101\" === 900719925474099102n");
|
||||
assert.sameValue(0n === "", false, '0n === ""');
|
||||
assert.sameValue("" === 0n, false, '"" === 0n');
|
||||
assert.sameValue(0n === "-0", false, '0n === "-0"');
|
||||
assert.sameValue("-0" === 0n, false, '"-0" === 0n');
|
||||
assert.sameValue(0n === "0", false, '0n === "0"');
|
||||
assert.sameValue("0" === 0n, false, '"0" === 0n');
|
||||
assert.sameValue(0n === "-1", false, '0n === "-1"');
|
||||
assert.sameValue("-1" === 0n, false, '"-1" === 0n');
|
||||
assert.sameValue(0n === "1", false, '0n === "1"');
|
||||
assert.sameValue("1" === 0n, false, '"1" === 0n');
|
||||
assert.sameValue(0n === "foo", false, '0n === "foo"');
|
||||
assert.sameValue("foo" === 0n, false, '"foo" === 0n');
|
||||
assert.sameValue(1n === "", false, '1n === ""');
|
||||
assert.sameValue("" === 1n, false, '"" === 1n');
|
||||
assert.sameValue(1n === "-0", false, '1n === "-0"');
|
||||
assert.sameValue("-0" === 1n, false, '"-0" === 1n');
|
||||
assert.sameValue(1n === "0", false, '1n === "0"');
|
||||
assert.sameValue("0" === 1n, false, '"0" === 1n');
|
||||
assert.sameValue(1n === "-1", false, '1n === "-1"');
|
||||
assert.sameValue("-1" === 1n, false, '"-1" === 1n');
|
||||
assert.sameValue(1n === "1", false, '1n === "1"');
|
||||
assert.sameValue("1" === 1n, false, '"1" === 1n');
|
||||
assert.sameValue(1n === "foo", false, '1n === "foo"');
|
||||
assert.sameValue("foo" === 1n, false, '"foo" === 1n');
|
||||
assert.sameValue(-1n === "-", false, '-1n === "-"');
|
||||
assert.sameValue("-" === -1n, false, '"-" === -1n');
|
||||
assert.sameValue(-1n === "-0", false, '-1n === "-0"');
|
||||
assert.sameValue("-0" === -1n, false, '"-0" === -1n');
|
||||
assert.sameValue(-1n === "-1", false, '-1n === "-1"');
|
||||
assert.sameValue("-1" === -1n, false, '"-1" === -1n');
|
||||
assert.sameValue(-1n === "-foo", false, '-1n === "-foo"');
|
||||
assert.sameValue("-foo" === -1n, false, '"-foo" === -1n');
|
||||
assert.sameValue(900719925474099101n === "900719925474099101", false, '900719925474099101n === "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" === 900719925474099101n, false, '"900719925474099101" === 900719925474099101n');
|
||||
assert.sameValue(900719925474099102n === "900719925474099101", false, '900719925474099102n === "900719925474099101"');
|
||||
assert.sameValue("900719925474099101" === 900719925474099102n, false, '"900719925474099101" === 900719925474099102n');
|
||||
|
|
Loading…
Reference in New Issue