diff --git a/test/language/expressions/greater-than/bigint-and-string.js b/test/language/expressions/greater-than/bigint-and-string.js index 68b5f7b4cacdae47dd6ae1999b32d3fda04fa386..42d2228e1d8b9e730331b8ad32ab4f7a3f740c20 100644 --- a/test/language/expressions/greater-than/bigint-and-string.js +++ b/test/language/expressions/greater-than/bigint-and-string.js @@ -25,6 +25,15 @@ assert.sameValue(-1n > '1', false, 'The result of (-1n > "1") is false'); assert.sameValue('-1' > 1n, false, 'The result of ("-1" > 1n) is false'); assert.sameValue(-1n > '-1', false, 'The result of (-1n > "-1") is false'); assert.sameValue('-1' > -1n, false, 'The result of ("-1" > -1n) is false'); +assert.sameValue('0x10' > 15n, true, 'The result of ("0x10" > 15n) is true'); +assert.sameValue('0x10' > 16n, false, 'The result of ("0x10" > 16n) is false'); +assert.sameValue('0x10' > 17n, false, 'The result of ("0x10" > 17n) is false'); +assert.sameValue('0o10' > 7n, true, 'The result of ("0o10" > 7n) is true'); +assert.sameValue('0o10' > 8n, false, 'The result of ("0o10" > 8n) is false'); +assert.sameValue('0o10' > 9n, false, 'The result of ("0o10" > 9n) is false'); +assert.sameValue('0b10' > 1n, true, 'The result of ("0b10" > 1n) is true'); +assert.sameValue('0b10' > 2n, false, 'The result of ("0b10" > 2n) is false'); +assert.sameValue('0b10' > 3n, false, 'The result of ("0b10" > 3n) is false'); assert.sameValue( 9007199254740993n > '9007199254740992', @@ -48,4 +57,4 @@ assert.sameValue( '-9007199254740992' > -9007199254740993n, true, 'The result of ("-9007199254740992" > -9007199254740993n) is true' -); \ No newline at end of file +); diff --git a/test/language/expressions/less-than/bigint-and-string.js b/test/language/expressions/less-than/bigint-and-string.js index 1866b3c382c9984e45830d3c9701ba2c209353b3..6a66eb75f5a5d680d033194f62cb43fdffaf2d63 100644 --- a/test/language/expressions/less-than/bigint-and-string.js +++ b/test/language/expressions/less-than/bigint-and-string.js @@ -25,6 +25,15 @@ assert.sameValue(-1n < '1', true, 'The result of (-1n < "1") is true'); assert.sameValue('-1' < 1n, true, 'The result of ("-1" < 1n) is true'); assert.sameValue(-1n < '-1', false, 'The result of (-1n < "-1") is false'); assert.sameValue('-1' < -1n, false, 'The result of ("-1" < -1n) is false'); +assert.sameValue('0x10' < 15n, false, 'The result of ("0x10" < 15n) is false'); +assert.sameValue('0x10' < 16n, false, 'The result of ("0x10" < 16n) is false'); +assert.sameValue('0x10' < 17n, true, 'The result of ("0x10" < 17n) is true'); +assert.sameValue('0o10' < 7n, false, 'The result of ("0o10" < 7n) is false'); +assert.sameValue('0o10' < 8n, false, 'The result of ("0o10" < 8n) is false'); +assert.sameValue('0o10' < 9n, true, 'The result of ("0o10" < 9n) is true'); +assert.sameValue('0b10' < 1n, false, 'The result of ("0b10" < 1n) is false'); +assert.sameValue('0b10' < 2n, false, 'The result of ("0b10" < 2n) is false'); +assert.sameValue('0b10' < 3n, true, 'The result of ("0b10" < 3n) is true'); assert.sameValue( 9007199254740993n < '9007199254740992', @@ -48,4 +57,4 @@ assert.sameValue( '-9007199254740992' < -9007199254740993n, false, 'The result of ("-9007199254740992" < -9007199254740993n) is false' -); \ No newline at end of file +);