From d4113f6028036a3f0ec98f31b7be359a38a523a4 Mon Sep 17 00:00:00 2001 From: Peter Bindels Date: Sat, 17 Jul 2021 23:32:49 +0200 Subject: [PATCH] LibJS: Correct test to work with our strtod on x86_64 & Clang Modify constant to be half a ULP lower so our strtod also parses it correctly. Needs to have issue associated for actually fully fixing strtod to be correct, rather than correct-enough. --- .../Tests/builtins/DataView/ArrayBuffer.prototype.float64.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Tests/builtins/DataView/ArrayBuffer.prototype.float64.js b/Userland/Libraries/LibJS/Tests/builtins/DataView/ArrayBuffer.prototype.float64.js index 1aad5d8585..c0a83b4b4d 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/DataView/ArrayBuffer.prototype.float64.js +++ b/Userland/Libraries/LibJS/Tests/builtins/DataView/ArrayBuffer.prototype.float64.js @@ -4,5 +4,5 @@ test("basic functionality", () => { view.setFloat64(0, 6865415254.161212); expect(view.getFloat64(0)).toBe(6865415254.161212); view.setFloat64(0, 6865415254.161212, true); - expect(view.getFloat64(0)).toBe(4.2523296908380055e94); + expect(view.getFloat64(0)).toBe(4.2523296908380052e94); });