1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

LibJS: Enable commented out tests in Math.asin

This commit is contained in:
davidot 2022-11-28 12:23:59 +01:00 committed by Andreas Kling
parent bf1b2d63c6
commit ab19d7c99d

View file

@ -5,8 +5,8 @@ test("basic functionality", () => {
expect(Math.asin(null)).toBe(0);
expect(Math.asin("")).toBe(0);
expect(Math.asin([])).toBe(0);
// FIXME(LibM): expect(Math.asin(1)).toBeCloseTo(1.5707963267948966);
// FIXME(LibM): expect(Math.asin(-1)).toBeCloseTo(-1.5707963267948966);
expect(Math.asin(1)).toBeCloseTo(1.5707963267948966);
expect(Math.asin(-1)).toBeCloseTo(-1.5707963267948966);
expect(Math.asin()).toBeNaN();
expect(Math.asin(undefined)).toBeNaN();
expect(Math.asin([1, 2, 3])).toBeNaN();