mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
LibJS: Add spec comments and check for edge cases in Math.sinh
This commit is contained in:
parent
4306462a95
commit
8de8742b7c
2 changed files with 11 additions and 2 deletions
|
@ -3,4 +3,8 @@ test("basic functionality", () => {
|
|||
|
||||
expect(Math.sinh(0)).toBe(0);
|
||||
expect(Math.sinh(1)).toBeCloseTo(1.1752011936438014);
|
||||
expect(Math.sinh(NaN)).toBe(NaN);
|
||||
expect(Math.sinh(Number.POSITIVE_INFINITY)).toBe(Number.POSITIVE_INFINITY);
|
||||
expect(Math.sinh(Number.NEGATIVE_INFINITY)).toBe(Number.NEGATIVE_INFINITY);
|
||||
expect(Math.sinh(-0.0)).toBe(-0.0);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue