LibJS: Add spec comments and check for edge cases in Math.atanh

This commit is contained in:
davidot 2022-11-28 12:02:45 +01:00 committed by Andreas Kling
commit c565cbd30c
Notes: sideshowbarker 2024-07-17 03:59:26 +09:00
2 changed files with 22 additions and 3 deletions

View file

@ -7,4 +7,6 @@ test("basic functionality", () => {
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);
});