More fixes for bigint and MIN_VALUE comparisons

This commit is contained in:
Leo Balter 2017-09-05 13:56:00 -04:00
parent 2f655036d4
commit d753349056
No known key found for this signature in database
GPG Key ID: 2C75F319D398E36B
2 changed files with 3 additions and 3 deletions

View File

@ -32,5 +32,5 @@ assert.sameValue(0 >= 0n, true);
assert.sameValue(0n >= 0, true);
assert.sameValue(1n >= Number.MAX_VALUE, false);
assert.sameValue(Number.MIN_VALUE >= 0n, true);
assert.sameValue(-10n >= Number.MIN_VALUE, true);
assert.sameValue(-10n >= Number.MIN_VALUE, false);
assert.sameValue(Number.MAX_VALUE >= 10000000000n, true);

View File

@ -31,6 +31,6 @@ assert.sameValue(0 <= 1n, true);
assert.sameValue(0 <= 0n, true);
assert.sameValue(0n <= 0, true);
assert.sameValue(1n <= Number.MAX_VALUE, true);
assert.sameValue(Number.MIN_VALUE <= 0n, true);
assert.sameValue(-10n <= Number.MIN_VALUE, false);
assert.sameValue(Number.MIN_VALUE <= 0n, false);
assert.sameValue(-10n <= Number.MIN_VALUE, true);
assert.sameValue(Number.MAX_VALUE <= 10000000000n, false);