mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 10:14:57 +00:00
13 lines
281 B
JavaScript
13 lines
281 B
JavaScript
load("test-common.js");
|
|
|
|
try {
|
|
assert(isNaN(Math.log1p(-2)));
|
|
assert(Math.log1p(-1) === -Infinity);
|
|
// FIXME: assert(Math.log1p(0) === 0);
|
|
// FIXME: assert(isClose(Math.log1p(1), 0.693147));
|
|
|
|
|
|
console.log("PASS");
|
|
} catch (e) {
|
|
console.log("FAIL: " + e);
|
|
}
|