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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 // Properties of Math.asinh that are guaranteed by the spec.
     3 // If x is NaN, the result is NaN.
     4 assertEq(Math.asinh(NaN), NaN);
     6 // If x is +0, the result is +0.
     7 assertEq(Math.asinh(+0), +0);
     9 // If x is −0, the result is −0.
    10 assertEq(Math.asinh(-0), -0);
    12 // If x is +∞, the result is +∞.
    13 assertEq(Math.asinh(Infinity), Infinity);
    15 // If x is −∞, the result is −∞.
    16 assertEq(Math.asinh(-Infinity), -Infinity);
    19 reportCompare(0, 0, "ok");

mercurial