Merge pull request #1210 from tc39/bigint-fix-minvalue

More fixes for bigint and MIN_VALUE comparisons
This commit is contained in:
Daniel Ehrenberg 2017-09-05 20:46:13 +02:00 committed by GitHub
commit 457623ff24
4 changed files with 7 additions and 7 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, false);
assert.sameValue(0 > 0n, false);
assert.sameValue(0n > 0, false);
assert.sameValue(1n > Number.MAX_VALUE, false);
assert.sameValue(Number.MIN_VALUE > 0n, false);
assert.sameValue(-10n > Number.MIN_VALUE, true);
assert.sameValue(Number.MIN_VALUE > 0n, 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);

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);