import { cbrt } from "../utils/number"; import { describe, it, expect } from "vitest"; describe("cube root", () => { describe("cbrt()", () => { it("should return the cube root of a number", () => { expect(cbrt(729000)).toBe(90); expect(cbrt(125)).toBe(5); expect(cbrt(512)).toBe(8); }); }); });