mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
12 lines
408 B
JavaScript
12 lines
408 B
JavaScript
test("basic functionality", () => {
|
|
expect(Math.atanh).toHaveLength(1);
|
|
|
|
expect(Math.atanh(-2)).toBeNaN();
|
|
expect(Math.atanh(2)).toBeNaN();
|
|
expect(Math.atanh(-1)).toBe(-Infinity);
|
|
expect(Math.atanh(0)).toBe(0);
|
|
expect(Math.atanh(0.5)).toBeCloseTo(0.549306);
|
|
expect(Math.atanh(1)).toBe(Infinity);
|
|
expect(Math.atanh(NaN)).toBe(NaN);
|
|
expect(Math.atanh(-0.0)).toBe(-0.0);
|
|
});
|