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

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

mercurial