Fix #2605; make safe-integer.js call isSafeInteger

The folder and file name implies it should be using isSafeInteger rather
than isInteger which it was using.
This commit is contained in:
Mårten Nordheim 2020-04-30 09:34:02 +02:00 committed by Rick Waldron
parent 429c60ec38
commit 9da54d053d
1 changed files with 6 additions and 6 deletions

View File

@ -15,9 +15,9 @@ info: |
[...]
---*/
assert.sameValue(Number.isInteger(1), true, "1");
assert.sameValue(Number.isInteger(-0), true, "-0");
assert.sameValue(Number.isInteger(0), true, "0");
assert.sameValue(Number.isInteger(-1), true, "-1");
assert.sameValue(Number.isInteger(9007199254740991), true, "9007199254740991");
assert.sameValue(Number.isInteger(-9007199254740991), true, "-9007199254740991");
assert.sameValue(Number.isSafeInteger(1), true, "1");
assert.sameValue(Number.isSafeInteger(-0), true, "-0");
assert.sameValue(Number.isSafeInteger(0), true, "0");
assert.sameValue(Number.isSafeInteger(-1), true, "-1");
assert.sameValue(Number.isSafeInteger(9007199254740991), true, "9007199254740991");
assert.sameValue(Number.isSafeInteger(-9007199254740991), true, "-9007199254740991");