1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 19:04:59 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/Math/Math.log.js
2021-01-12 12:17:46 +01:00

8 lines
246 B
JavaScript

test("basic functionality", () => {
expect(Math.log).toHaveLength(1);
expect(Math.log(-1)).toBe(NaN);
expect(Math.log(0)).toBe(-Infinity);
expect(Math.log(1)).toBe(0);
expect(Math.log(10)).toBeCloseTo(2.302585092994046);
});