Commit 454f19e6 authored by Ross McIlroy's avatar Ross McIlroy Committed by Commit Bot

[Tests] Fix math-log2-log10.js on Android

BUG=v8:8074

Change-Id: I012666ff1a06d0a53f893031a3caf38ed0d40229
Reviewed-on: https://chromium-review.googlesource.com/1181421Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55237}
parent 72188ea9
......@@ -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.
......
......@@ -641,8 +641,6 @@
##############################################################################
['system == android', {
# Tests consistently failing on Android.
# Precision:
'es6/math-log2-log10': [FAIL],
# Timezone issues:
'icu-date-to-string': [FAIL],
'regress/regress-6288': [FAIL],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment