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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/ecma_6/Math/log10-approx.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,9 @@
     1.4 +assertNear(Math.log10(2), 0.3010299956639812);
     1.5 +assertNear(Math.log10(7), 0.8450980400142568);
     1.6 +assertNear(Math.log10(Math.E), Math.LOG10E);
     1.7 +
     1.8 +for (var i = -10; i < 10; i++)
     1.9 +    assertNear(Math.log10(Math.pow(10, i)), i);
    1.10 +
    1.11 +reportCompare(0, 0, 'ok');
    1.12 +

mercurial