2020-07-04 10:09:48 -07:00
|
|
|
test("basic functionality", () => {
|
2020-07-06 07:37:45 -07:00
|
|
|
expect(Math.asinh).toHaveLength(1);
|
2020-06-21 11:34:00 +02:00
|
|
|
|
2020-07-06 07:37:45 -07:00
|
|
|
expect(Math.asinh(0)).toBeCloseTo(0);
|
2020-12-29 13:44:52 +03:00
|
|
|
expect(Math.asinh(1)).toBeCloseTo(0.881373);
|
2022-11-28 12:01:29 +01:00
|
|
|
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);
|
2020-07-04 10:09:48 -07:00
|
|
|
});
|