js/src/tests/ecma_6/Math/expm1-exact.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:eded85ef8d6e
1 // Properties of Math.expm1 that are guaranteed by the spec.
2
3 // If x is NaN, the result is NaN.
4 assertEq(Math.expm1(NaN), NaN);
5
6 // If x is +0, the result is +0.
7 assertEq(Math.expm1(+0), +0);
8
9 // If x is −0, the result is −0.
10 assertEq(Math.expm1(-0), -0);
11
12 // If x is +∞, the result is +∞.
13 assertEq(Math.expm1(Infinity), Infinity);
14
15 // If x is −∞, the result is -1.
16 assertEq(Math.expm1(-Infinity), -1);
17
18
19 reportCompare(0, 0, "ok");
20

mercurial