MCPcopy Create free account
hub / github.com/d3/d3-array / assertSetEqual

Function assertSetEqual

test/asserts.js:4–9  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

2import {InternSet} from "internmap";
3
4export function assertSetEqual(actual, expected) {
5 assert(actual instanceof Set);
6 expected = new InternSet(expected);
7 for (const a of actual) assert(expected.has(a), `unexpected ${a}`);
8 for (const e of expected) assert(actual.has(e), `expected ${e}`);
9}

Callers 3

union-test.jsFile · 0.90
difference-test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…