1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 19:04:59 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Math/Math.acosh.js
2021-01-12 12:17:46 +01:00

9 lines
286 B
JavaScript

test("basic functionality", () => {
expect(Math.acosh).toHaveLength(1);
expect(Math.acosh(-1)).toBeNaN();
expect(Math.acosh(0)).toBeNaN();
expect(Math.acosh(0.5)).toBeNaN();
expect(Math.acosh(1)).toBeCloseTo(0);
expect(Math.acosh(2)).toBeCloseTo(1.316957);
});