mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +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
|
@ -2,10 +2,9 @@ test("basic functionality", () => {
|
|||
expect(Math.log2).toHaveLength(1);
|
||||
|
||||
expect(Math.log2(3)).toBeCloseTo(1.584962500721156);
|
||||
// FIXME: not precise enough
|
||||
// expect(Math.log2(2)).toBe(1);
|
||||
// expect(Math.log2(1)).toBe(0);
|
||||
expect(Math.log2(2)).toBe(1);
|
||||
expect(Math.log2(1)).toBe(0);
|
||||
expect(Math.log2(0)).toBe(-Infinity);
|
||||
expect(Math.log2(-2)).toBe(NaN);
|
||||
// expect(Math.log2(1024)).toBe(10);
|
||||
expect(Math.log2(1024)).toBe(10);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue