UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

20 lines (17 loc) 544 B
import { setIsSetEqual } from "./set-is-set-equal.js"; import { Test_setDefaultFlags } from "../../test-util/test_set-default-flags.js"; describe("=> setIsSetEqual", () => { beforeEach(() => { Test_setDefaultFlags(); }); it("| returns true if the items are the same", () => { expect(setIsSetEqual(new Set(["a"]), new Set(["a"]))).toBe(true); }); it("| returns false if the items are the same", () => { expect(setIsSetEqual(new Set(["a"]), new Set(["a", "b"]))).toBe(false); }); });