mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00:00
LibJS: Add spec comments and check for edge cases in Math.atanh
This commit is contained in:
parent
68aeeea5d2
commit
c565cbd30c
Notes:
sideshowbarker
2024-07-17 03:59:26 +09:00
Author: https://github.com/davidot
Commit: c565cbd30c
Pull-request: https://github.com/SerenityOS/serenity/pull/16234
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