diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es6/math-log2-log10.js')
-rw-r--r-- | deps/v8/test/mjsunit/es6/math-log2-log10.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/es6/math-log2-log10.js b/deps/v8/test/mjsunit/es6/math-log2-log10.js index ea17a79daf..eeacee927b 100644 --- a/deps/v8/test/mjsunit/es6/math-log2-log10.js +++ b/deps/v8/test/mjsunit/es6/math-log2-log10.js @@ -44,7 +44,9 @@ for (var i = -310; i <= 308; i += 0.5) { assertEquals(i, Math.log10(Math.pow(10, i))); // Square roots are tested below. - if (i != -0.5 && i != 0.5) assertEquals(i, Math.log2(Math.pow(2, i))); + if (i != -0.5 && i != 0.5 ) { + assertEqualsDelta(i, Math.log2(Math.pow(2, i)), Number.EPSILON); + } } // Test denormals. |