mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibJS: Add spec comments and check for edge cases in Math.asin
This commit is contained in:
parent
cf4daa3941
commit
6bdf021b0c
2 changed files with 13 additions and 0 deletions
|
@ -12,4 +12,8 @@ test("basic functionality", () => {
|
|||
expect(Math.asin([1, 2, 3])).toBeNaN();
|
||||
expect(Math.asin({})).toBeNaN();
|
||||
expect(Math.asin("foo")).toBeNaN();
|
||||
expect(Math.asin(NaN)).toBe(NaN);
|
||||
expect(Math.asin(-0.0)).toBe(-0.0);
|
||||
expect(Math.asin(1.1)).toBe(NaN);
|
||||
expect(Math.asin(-1.1)).toBe(NaN);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue