ladybird/Libraries/LibJS/Tests/builtins/Math/Math.acosh.js

14 lines
304 B
JavaScript
Raw Normal View History

2020-06-21 11:34:00 +02:00
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));
2020-06-21 11:34:00 +02:00
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}