mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Uncomment the tests that pass now
This commit is contained in:
parent
92c6ae57fc
commit
1dbd264239
Notes:
sideshowbarker
2024-07-19 00:27:36 +09:00
Author: https://github.com/Cleverking2003
Commit: 1dbd264239
Pull-request: https://github.com/SerenityOS/serenity/pull/4622
Issue: https://github.com/SerenityOS/serenity/issues/4543
8 changed files with 19 additions and 22 deletions
|
@ -1,10 +1,9 @@
|
|||
test("basic functionality", () => {
|
||||
expect(Math.log10).toHaveLength(1);
|
||||
|
||||
// FIXME: not precise enough
|
||||
// expect(Math.log10(2)).toBeCloseTo(0.3010299956639812);
|
||||
// expect(Math.log10(1)).toBe(0);
|
||||
expect(Math.log10(2)).toBeCloseTo(0.3010299956639812);
|
||||
expect(Math.log10(1)).toBe(0);
|
||||
expect(Math.log10(0)).toBe(-Infinity);
|
||||
expect(Math.log10(-2)).toBe(NaN);
|
||||
// expect(Math.log10(100000)).toBe(5);
|
||||
expect(Math.log10(100000)).toBe(5);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue