js/src/tests/ecma_6/Math/log10-approx.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 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