1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

LibJS: Uncomment the tests that pass now

This commit is contained in:
Egor Ananyin 2020-12-29 13:44:52 +03:00 committed by Andreas Kling
parent 92c6ae57fc
commit 1dbd264239
8 changed files with 19 additions and 22 deletions

View file

@ -2,11 +2,11 @@ test("basic functionality", () => {
expect(Math.cbrt).toHaveLength(1);
expect(Math.cbrt(NaN)).toBeNaN();
// FIXME: expect(Math.cbrt(-1)).toBe(-1);
expect(Math.cbrt(-1)).toBe(-1);
expect(Math.cbrt(-0)).toBe(-0);
// FIXME: expect(Math.cbrt(-Infinity)).toBe(-Infinity);
// FIXME: expect(Math.cbrt(1)).toBe(1);
// FIXME: expect(Math.cbrt(Infinity)).toBe(Infinity);
// FIXME: expect(Math.cbrt(null)).toBe(0);
// FIXME: expect(Math.cbrt(2)).toBeCloseTo(1.259921));
expect(Math.cbrt(-Infinity)).toBe(-Infinity);
expect(Math.cbrt(1)).toBe(1);
expect(Math.cbrt(Infinity)).toBe(Infinity);
expect(Math.cbrt(null)).toBe(0);
expect(Math.cbrt(2)).toBeCloseTo(1.259921);
});