1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 08:25:10 +00:00
serenity/Libraries/LibJS/Tests/Math.acosh.js
Andreas Kling ed683663cd LibJS: Skip some Math object tests that fail on Serenity
Mark a bunch of these with FIXME so that someone can find them and
fix them eventually. :^)
2020-06-30 23:11:07 +02:00

13 lines
304 B
JavaScript

load("test-common.js");
try {
assert(isNaN(Math.acosh(-1)));
assert(isNaN(Math.acosh(0)));
assert(isNaN(Math.acosh(0.5)));
assert(isClose(Math.acosh(1), 0));
// FIXME: assert(isClose(Math.acosh(2), 1.316957));
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}