diff --git a/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js b/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js index d39e9e3886..6366dc3730 100644 --- a/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/does-not-equals/bigint-and-incomparable-primitive.js @@ -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'); diff --git a/test/language/expressions/does-not-equals/bigint-and-object.js b/test/language/expressions/does-not-equals/bigint-and-object.js index f4e57b0121..33d67b0348 100644 --- a/test/language/expressions/does-not-equals/bigint-and-object.js +++ b/test/language/expressions/does-not-equals/bigint-and-object.js @@ -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'); diff --git a/test/language/expressions/does-not-equals/bigint-and-string.js b/test/language/expressions/does-not-equals/bigint-and-string.js index ef6dd05bcd..4bea156a74 100644 --- a/test/language/expressions/does-not-equals/bigint-and-string.js +++ b/test/language/expressions/does-not-equals/bigint-and-string.js @@ -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'); diff --git a/test/language/expressions/equals/bigint-and-incomparable-primitive.js b/test/language/expressions/equals/bigint-and-incomparable-primitive.js index ff5e28c336..06df0c7329 100644 --- a/test/language/expressions/equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/equals/bigint-and-incomparable-primitive.js @@ -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'); diff --git a/test/language/expressions/equals/bigint-and-object.js b/test/language/expressions/equals/bigint-and-object.js index 0243b669a1..fe3438bb53 100644 --- a/test/language/expressions/equals/bigint-and-object.js +++ b/test/language/expressions/equals/bigint-and-object.js @@ -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'); diff --git a/test/language/expressions/equals/bigint-and-string.js b/test/language/expressions/equals/bigint-and-string.js index 569add3709..e72d615d2c 100644 --- a/test/language/expressions/equals/bigint-and-string.js +++ b/test/language/expressions/equals/bigint-and-string.js @@ -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'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js b/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js index 7e0289458f..8aa41f6631 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-incomparable-primitive.js @@ -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'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-object.js b/test/language/expressions/strict-does-not-equals/bigint-and-object.js index a8018b2ef7..4121f5dddc 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-object.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-object.js @@ -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'); diff --git a/test/language/expressions/strict-does-not-equals/bigint-and-string.js b/test/language/expressions/strict-does-not-equals/bigint-and-string.js index b067b2a8da..4be6cd4127 100644 --- a/test/language/expressions/strict-does-not-equals/bigint-and-string.js +++ b/test/language/expressions/strict-does-not-equals/bigint-and-string.js @@ -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'); diff --git a/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js b/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js index 20197abc5d..042cc2cfe3 100644 --- a/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js +++ b/test/language/expressions/strict-equals/bigint-and-incomparable-primitive.js @@ -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'); diff --git a/test/language/expressions/strict-equals/bigint-and-object.js b/test/language/expressions/strict-equals/bigint-and-object.js index 4ca88ff6e7..edcf182384 100644 --- a/test/language/expressions/strict-equals/bigint-and-object.js +++ b/test/language/expressions/strict-equals/bigint-and-object.js @@ -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'); diff --git a/test/language/expressions/strict-equals/bigint-and-string.js b/test/language/expressions/strict-equals/bigint-and-string.js index 747dd16034..7e83b80887 100644 --- a/test/language/expressions/strict-equals/bigint-and-string.js +++ b/test/language/expressions/strict-equals/bigint-and-string.js @@ -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');