mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
LibJS: Add spec comments and check for edge cases in Math.atanh
This commit is contained in:
parent
68aeeea5d2
commit
c565cbd30c
2 changed files with 22 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue