ladybird/Libraries/LibJS/Tests/Math.log1p.js

14 lines
261 B
JavaScript
Raw Normal View History

2020-06-21 11:34:00 +02:00
load("test-common.js");
try {
assert(isNaN(Math.log1p(-2)));
assert(Math.log1p(-1) === -Infinity);
assert(Math.log1p(0) === 0);
assert(isClose(Math.log1p(1), 0.693147));
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}