mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
LibJS: Uncomment Number.isInteger() tests that now pass :^)
This commit is contained in:
parent
1856400547
commit
54e1180f61
1 changed files with 3 additions and 3 deletions
|
@ -7,9 +7,9 @@ test("basic functionality", () => {
|
|||
expect(Number.isInteger(5)).toBeTrue();
|
||||
expect(Number.isInteger(5.0)).toBeTrue();
|
||||
expect(Number.isInteger(5 + 1 / 10000000000000000)).toBeTrue();
|
||||
// FIXME: values outside of i32's range should still return true
|
||||
// expect(Number.isInteger(+2147483647 + 1)).toBeTrue();
|
||||
// expect(Number.isInteger(-2147483648 - 1)).toBeTrue();
|
||||
expect(Number.isInteger(+2147483647 + 1)).toBeTrue();
|
||||
expect(Number.isInteger(-2147483648 - 1)).toBeTrue();
|
||||
// FIXME: This should return true
|
||||
// expect(Number.isInteger(99999999999999999999999999999999999)).toBeTrue();
|
||||
|
||||
expect(Number.isInteger(5 + 1 / 1000000000000000)).toBeFalse();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue