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

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:8f748da06f3c
1 assertNear(Math.log10(2), 0.3010299956639812);
2 assertNear(Math.log10(7), 0.8450980400142568);
3 assertNear(Math.log10(Math.E), Math.LOG10E);
4
5 for (var i = -10; i < 10; i++)
6 assertNear(Math.log10(Math.pow(10, i)), i);
7
8 reportCompare(0, 0, 'ok');
9

mercurial