aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-29 19:08:27 +0100
committerAlex Lam S.L <alexlamsl@gmail.com>2019-03-30 02:08:27 +0800
commit4b21526310ebb9a953020c347d1732d2e87b3cf2 (patch)
tree01490f20a1e324abd35262283dc5334945dc1983 /test
parenta7a7b1daed4d2b8cff6835b514b685a6eeef9aa7 (diff)
downloadtracifyjs-4b21526310ebb9a953020c347d1732d2e87b3cf2.tar.gz
tracifyjs-4b21526310ebb9a953020c347d1732d2e87b3cf2.zip
Fix test expectation (#3357)
The test expects a specific precision value that is not met on all V8 versions anymore due to a recent consolidation of different algorithms across the V8 code base. This makes sure the preceision is tested against one digit less to keep the test working on all V8 versions. Refs: https://chromium.googlesource.com/v8/v8/+/98453126c109016c9d32c6ebd89dd83f69dd8efb Refs: https://github.com/nodejs/node/issues/25060#issuecomment-477953457
Diffstat (limited to 'test')
-rw-r--r--test/compress/evaluate.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index a740cd82..6d3d3e56 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -1124,14 +1124,14 @@ issue_2207_1: {
console.log(Math.max(3, 6, 2, 7, 3, 4));
console.log(Math.cos(1.2345));
console.log(Math.cos(1.2345) - Math.sin(4.321));
- console.log(Math.pow(Math.PI, Math.E - Math.LN10));
+ console.log(Math.pow(Math.PI, Math.E - Math.LN10).toFixed(15));
}
expect: {
console.log("A");
console.log(7);
console.log(Math.cos(1.2345));
console.log(1.2543732512566947);
- console.log(1.6093984514472044);
+ console.log("1.609398451447204");
}
expect_stdout: true
}