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

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

mercurial