blob: f63a0daa77cb912d36d89c6a60cd72d0b8c8920f (
plain)
1
2
3
4
5
6
7
8
9
|
test("basic functionality", () => {
expect(Math.log10).toHaveLength(1);
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);
});
|