import { log10 } from "../utils/number"; import { describe, it, expect } from "vitest"; describe("logarithm base-10 root", () => { describe("log10()", () => { it("should return the logarithm base-10 of a number", () => { expect(log10(10)).toBe(1); expect(log10(20)).toBeCloseTo(1.30102999566); expect(log10(15)).toBeCloseTo(1.17609125906); }); }); });