1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

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.
This commit is contained in:
Peter Bindels 2021-07-17 23:32:49 +02:00 committed by Linus Groh
parent 0a0089fc11
commit d4113f6028

View file

@ -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);
});