mirror of https://github.com/tc39/test262.git
Adding prefixed string to compare with BigInt
This commit is contained in:
parent
fbccd8eeff
commit
ebe393172f
|
@ -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'
|
||||
);
|
||||
);
|
||||
|
|
|
@ -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'
|
||||
);
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue