mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:57:35 +00:00
Libraries: Move to Userland/Libraries/
This commit is contained in:
parent
dc28c07fa5
commit
13d7c09125
1857 changed files with 266 additions and 274 deletions
13
Userland/Libraries/LibJS/Tests/builtins/NaN/NaN.js
Normal file
13
Userland/Libraries/LibJS/Tests/builtins/NaN/NaN.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
test("basic functionality", () => {
|
||||
const nan = undefined + 1;
|
||||
|
||||
expect(nan + "").toBe("NaN");
|
||||
expect(NaN + "").toBe("NaN");
|
||||
expect(nan !== nan).toBeTrue();
|
||||
expect(NaN !== NaN).toBeTrue();
|
||||
expect(nan).toBeNaN();
|
||||
expect(NaN).toBeNaN();
|
||||
expect(0).not.toBeNaN();
|
||||
expect(!!nan).toBeFalse();
|
||||
expect(!!NaN).toBeFalse();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue