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
commit ab19d7c99d
Notes: sideshowbarker 2024-07-17 20:33:50 +09:00

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();