import { test } from "uvu"; import * as assert from "uvu/assert"; test("Math.sqrt()", () => { assert.is(Math.sqrt(4), 2); assert.is(Math.sqrt(144), 12); assert.is(Math.sqrt(2), Math.SQRT2); }); test("JSON", () => { const input = { foo: "hello", bar: "world", }; const output = JSON.stringify(input); assert.snapshot(output, `{"foo":"hello","bar":"world"}`); assert.equal(JSON.parse(output), input, "matches original"); }); test.run();