summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/builtins/Math/Math.cbrt.js
blob: a77ed22322787b2033c0c5d1b2f914c4fbd79a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
test("basic functionality", () => {
    expect(Math.cbrt).toHaveLength(1);

    expect(Math.cbrt(NaN)).toBeNaN();
    // FIXME: 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);
    expect(Math.cbrt(null)).toBe(0);
    // FIXME: expect(Math.cbrt(2)).toBeCloseTo(1.259921));
});