Math.sinh.js 410 B

12345678910
  1. test("basic functionality", () => {
  2. expect(Math.sinh).toHaveLength(1);
  3. expect(Math.sinh(0)).toBe(0);
  4. expect(Math.sinh(1)).toBeCloseTo(1.1752011936438014);
  5. expect(Math.sinh(NaN)).toBe(NaN);
  6. expect(Math.sinh(Number.POSITIVE_INFINITY)).toBe(Number.POSITIVE_INFINITY);
  7. expect(Math.sinh(Number.NEGATIVE_INFINITY)).toBe(Number.NEGATIVE_INFINITY);
  8. expect(Math.sinh(-0.0)).toBe(-0.0);
  9. });