mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
26
Libraries/LibJS/Tests/builtins/functions/isNaN.js
Normal file
26
Libraries/LibJS/Tests/builtins/functions/isNaN.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
test("length is 1", () => {
|
||||
expect(isNaN).toHaveLength(1);
|
||||
});
|
||||
|
||||
test("arguments that evaluate to false", () => {
|
||||
expect(isNaN(0)).toBeFalse();
|
||||
expect(isNaN(42)).toBeFalse();
|
||||
expect(isNaN("")).toBeFalse();
|
||||
expect(isNaN("0")).toBeFalse();
|
||||
expect(isNaN("42")).toBeFalse();
|
||||
expect(isNaN(true)).toBeFalse();
|
||||
expect(isNaN(false)).toBeFalse();
|
||||
expect(isNaN(null)).toBeFalse();
|
||||
expect(isNaN([])).toBeFalse();
|
||||
expect(isNaN(Infinity)).toBeFalse();
|
||||
expect(isNaN(-Infinity)).toBeFalse();
|
||||
});
|
||||
|
||||
test("arguments that evaluate to true", () => {
|
||||
expect(isNaN()).toBeTrue();
|
||||
expect(isNaN(NaN)).toBeTrue();
|
||||
expect(isNaN(undefined)).toBeTrue();
|
||||
expect(isNaN("foo")).toBeTrue();
|
||||
expect(isNaN({})).toBeTrue();
|
||||
expect(isNaN([1, 2, 3])).toBeTrue();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue