mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
LibJS: Add spec comments and check for edge cases in Math.asinh
This commit is contained in:
parent
6bdf021b0c
commit
68aeeea5d2
Notes:
sideshowbarker
2024-07-17 03:59:29 +09:00
Author: https://github.com/davidot
Commit: 68aeeea5d2
Pull-request: https://github.com/SerenityOS/serenity/pull/16234
2 changed files with 14 additions and 1 deletions
|
@ -3,4 +3,9 @@ test("basic functionality", () => {
|
|||
|
||||
expect(Math.asinh(0)).toBeCloseTo(0);
|
||||
expect(Math.asinh(1)).toBeCloseTo(0.881373);
|
||||
expect(Math.asinh(NaN)).toBe(NaN);
|
||||
expect(Math.asinh(Number.POSITIVE_INFINITY)).toBe(Number.POSITIVE_INFINITY);
|
||||
expect(Math.asinh(Number.NEGATIVE_INFINITY)).toBe(Number.NEGATIVE_INFINITY);
|
||||
expect(Math.asinh(0.0)).toBe(0.0);
|
||||
expect(Math.asinh(-0.0)).toBe(-0.0);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue