import { JSON } from "../"; import { describe, expect, run } from "as-test/assembly"; describe("Should serialize booleans", () => { expect(JSON.stringify(true)).toBe("true"); expect(JSON.stringify(false)).toBe("false"); expect(JSON.stringify(true)).toBe("true"); expect(JSON.stringify(false)).toBe("false"); }); describe("Should deserialize booleans", () => { expect(JSON.parse("true")).toBe(true); expect(JSON.parse("false")).toBe(false); }); run();