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

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

mercurial