js/src/tests/ecma_6/Math/log10-approx.js

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 assertNear(Math.log10(2), 0.3010299956639812);
     2 assertNear(Math.log10(7), 0.8450980400142568);
     3 assertNear(Math.log10(Math.E), Math.LOG10E);
     5 for (var i = -10; i < 10; i++)
     6     assertNear(Math.log10(Math.pow(10, i)), i);
     8 reportCompare(0, 0, 'ok');

mercurial