mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-07 00:30:59 +00:00
14 lines
294 B
JavaScript
14 lines
294 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));
|
||
|
|
assert(isClose(Math.acosh(2), 1.316957));
|
||
|
|
|
||
|
|
console.log("PASS");
|
||
|
|
} catch (e) {
|
||
|
|
console.log("FAIL: " + e);
|
||
|
|
}
|