@xylabs/set 2.11.10 → 2.11.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -42,8 +42,8 @@
42
42
  "esm"
43
43
  ],
44
44
  "devDependencies": {
45
- "@xylabs/ts-scripts-yarn3": "^3.0.55",
46
- "@xylabs/tsconfig": "^3.0.55",
45
+ "@xylabs/ts-scripts-yarn3": "^3.0.62",
46
+ "@xylabs/tsconfig": "^3.0.62",
47
47
  "typescript": "^5.2.2"
48
48
  },
49
49
  "publishConfig": {
@@ -54,6 +54,6 @@
54
54
  "url": "https://github.com/xylabs/sdk-js.git"
55
55
  },
56
56
  "sideEffects": false,
57
- "version": "2.11.10",
57
+ "version": "2.11.12",
58
58
  "packageManager": "yarn@3.3.1"
59
59
  }
@@ -1,14 +0,0 @@
1
- import { difference } from "../difference";
2
- const cases = [
3
- // Difference is non-commutative
4
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1])],
5
- [/* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([4])],
6
- // Difference of identical sets yields empty set
7
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([])]
8
- ];
9
- describe("difference", () => {
10
- test.each(cases)("calculates the difference of the two sets", (a, b, expected) => {
11
- expect(difference(a, b)).toEqual(expected);
12
- });
13
- });
14
- //# sourceMappingURL=difference.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/difference.spec.ts"],"sourcesContent":["import { difference } from '../difference'\n\nconst cases = [\n // Difference is non-commutative\n [new Set([1, 2, 3]), new Set([2, 3, 4]), new Set([1])],\n [new Set([2, 3, 4]), new Set([1, 2, 3]), new Set([4])],\n // Difference of identical sets yields empty set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([])],\n]\n\ndescribe('difference', () => {\n test.each(cases)('calculates the difference of the two sets', (a, b, expected) => {\n expect(difference(a, b)).toEqual(expected)\n })\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAE3B,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAAA,EACrD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAErD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC;AACtD;AAEA,SAAS,cAAc,MAAM;AAC3B,OAAK,KAAK,KAAK,EAAE,6CAA6C,CAAC,GAAG,GAAG,aAAa;AAChF,WAAO,WAAW,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC3C,CAAC;AACH,CAAC;","names":[]}
@@ -1,14 +0,0 @@
1
- import { intersection } from "../intersection";
2
- const cases = [
3
- // Intersection is commutative
4
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([2, 3])],
5
- [/* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3])],
6
- // Intersection of identical sets yields same set
7
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3])]
8
- ];
9
- describe("intersection", () => {
10
- test.each(cases)("calculates the intersection of the two sets", (a, b, expected) => {
11
- expect(intersection(a, b)).toEqual(expected);
12
- });
13
- });
14
- //# sourceMappingURL=intersection.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/intersection.spec.ts"],"sourcesContent":["import { intersection } from '../intersection'\n\nconst cases = [\n // Intersection is commutative\n [new Set([1, 2, 3]), new Set([2, 3, 4]), new Set([2, 3])],\n [new Set([2, 3, 4]), new Set([1, 2, 3]), new Set([2, 3])],\n // Intersection of identical sets yields same set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([1, 2, 3])],\n]\n\ndescribe('intersection', () => {\n test.each(cases)('calculates the intersection of the two sets', (a, b, expected) => {\n expect(intersection(a, b)).toEqual(expected)\n })\n})\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAAA,EACxD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAAA;AAAA,EAExD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,gBAAgB,MAAM;AAC7B,OAAK,KAAK,KAAK,EAAE,+CAA+C,CAAC,GAAG,GAAG,aAAa;AAClF,WAAO,aAAa,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC7C,CAAC;AACH,CAAC;","names":[]}
@@ -1,14 +0,0 @@
1
- import { union } from "../union";
2
- const cases = [
3
- // Union is commutative
4
- [/* @__PURE__ */ new Set([1, 2]), /* @__PURE__ */ new Set([3, 4]), /* @__PURE__ */ new Set([1, 2, 3, 4])],
5
- [/* @__PURE__ */ new Set([3, 4]), /* @__PURE__ */ new Set([1, 2]), /* @__PURE__ */ new Set([1, 2, 3, 4])],
6
- // Union of identical sets yields same set
7
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3])]
8
- ];
9
- describe("union", () => {
10
- test.each(cases)("calculates the union of the two sets", (a, b, expected) => {
11
- expect(union(a, b)).toEqual(expected);
12
- });
13
- });
14
- //# sourceMappingURL=union.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/union.spec.ts"],"sourcesContent":["import { union } from '../union'\n\nconst cases = [\n // Union is commutative\n [new Set([1, 2]), new Set([3, 4]), new Set([1, 2, 3, 4])],\n [new Set([3, 4]), new Set([1, 2]), new Set([1, 2, 3, 4])],\n // Union of identical sets yields same set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([1, 2, 3])],\n]\n\ndescribe('union', () => {\n test.each(cases)('calculates the union of the two sets', (a, b, expected) => {\n expect(union(a, b)).toEqual(expected)\n })\n})\n"],"mappings":"AAAA,SAAS,aAAa;AAEtB,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA,EACxD,CAAC,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA;AAAA,EAExD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,SAAS,MAAM;AACtB,OAAK,KAAK,KAAK,EAAE,wCAAwC,CAAC,GAAG,GAAG,aAAa;AAC3E,WAAO,MAAM,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EACtC,CAAC;AACH,CAAC;","names":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var import_difference = require("../difference");
3
- const cases = [
4
- // Difference is non-commutative
5
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1])],
6
- [/* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([4])],
7
- // Difference of identical sets yields empty set
8
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([])]
9
- ];
10
- describe("difference", () => {
11
- test.each(cases)("calculates the difference of the two sets", (a, b, expected) => {
12
- expect((0, import_difference.difference)(a, b)).toEqual(expected);
13
- });
14
- });
15
- //# sourceMappingURL=difference.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/difference.spec.ts"],"sourcesContent":["import { difference } from '../difference'\n\nconst cases = [\n // Difference is non-commutative\n [new Set([1, 2, 3]), new Set([2, 3, 4]), new Set([1])],\n [new Set([2, 3, 4]), new Set([1, 2, 3]), new Set([4])],\n // Difference of identical sets yields empty set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([])],\n]\n\ndescribe('difference', () => {\n test.each(cases)('calculates the difference of the two sets', (a, b, expected) => {\n expect(difference(a, b)).toEqual(expected)\n })\n})\n"],"mappings":";AAAA,wBAA2B;AAE3B,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAAA,EACrD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAErD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC;AACtD;AAEA,SAAS,cAAc,MAAM;AAC3B,OAAK,KAAK,KAAK,EAAE,6CAA6C,CAAC,GAAG,GAAG,aAAa;AAChF,eAAO,8BAAW,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC3C,CAAC;AACH,CAAC;","names":[]}
@@ -1,14 +0,0 @@
1
- import { difference } from "../difference";
2
- const cases = [
3
- // Difference is non-commutative
4
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1])],
5
- [/* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([4])],
6
- // Difference of identical sets yields empty set
7
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([])]
8
- ];
9
- describe("difference", () => {
10
- test.each(cases)("calculates the difference of the two sets", (a, b, expected) => {
11
- expect(difference(a, b)).toEqual(expected);
12
- });
13
- });
14
- //# sourceMappingURL=difference.spec.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/difference.spec.ts"],"sourcesContent":["import { difference } from '../difference'\n\nconst cases = [\n // Difference is non-commutative\n [new Set([1, 2, 3]), new Set([2, 3, 4]), new Set([1])],\n [new Set([2, 3, 4]), new Set([1, 2, 3]), new Set([4])],\n // Difference of identical sets yields empty set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([])],\n]\n\ndescribe('difference', () => {\n test.each(cases)('calculates the difference of the two sets', (a, b, expected) => {\n expect(difference(a, b)).toEqual(expected)\n })\n})\n"],"mappings":"AAAA,SAAS,kBAAkB;AAE3B,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAAA,EACrD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC,CAAC;AAAA;AAAA,EAErD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,CAAC,CAAC;AACtD;AAEA,SAAS,cAAc,MAAM;AAC3B,OAAK,KAAK,KAAK,EAAE,6CAA6C,CAAC,GAAG,GAAG,aAAa;AAChF,WAAO,WAAW,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC3C,CAAC;AACH,CAAC;","names":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var import_intersection = require("../intersection");
3
- const cases = [
4
- // Intersection is commutative
5
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([2, 3])],
6
- [/* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3])],
7
- // Intersection of identical sets yields same set
8
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3])]
9
- ];
10
- describe("intersection", () => {
11
- test.each(cases)("calculates the intersection of the two sets", (a, b, expected) => {
12
- expect((0, import_intersection.intersection)(a, b)).toEqual(expected);
13
- });
14
- });
15
- //# sourceMappingURL=intersection.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/intersection.spec.ts"],"sourcesContent":["import { intersection } from '../intersection'\n\nconst cases = [\n // Intersection is commutative\n [new Set([1, 2, 3]), new Set([2, 3, 4]), new Set([2, 3])],\n [new Set([2, 3, 4]), new Set([1, 2, 3]), new Set([2, 3])],\n // Intersection of identical sets yields same set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([1, 2, 3])],\n]\n\ndescribe('intersection', () => {\n test.each(cases)('calculates the intersection of the two sets', (a, b, expected) => {\n expect(intersection(a, b)).toEqual(expected)\n })\n})\n"],"mappings":";AAAA,0BAA6B;AAE7B,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAAA,EACxD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAAA;AAAA,EAExD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,gBAAgB,MAAM;AAC7B,OAAK,KAAK,KAAK,EAAE,+CAA+C,CAAC,GAAG,GAAG,aAAa;AAClF,eAAO,kCAAa,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC7C,CAAC;AACH,CAAC;","names":[]}
@@ -1,14 +0,0 @@
1
- import { intersection } from "../intersection";
2
- const cases = [
3
- // Intersection is commutative
4
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([2, 3])],
5
- [/* @__PURE__ */ new Set([2, 3, 4]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([2, 3])],
6
- // Intersection of identical sets yields same set
7
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3])]
8
- ];
9
- describe("intersection", () => {
10
- test.each(cases)("calculates the intersection of the two sets", (a, b, expected) => {
11
- expect(intersection(a, b)).toEqual(expected);
12
- });
13
- });
14
- //# sourceMappingURL=intersection.spec.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/intersection.spec.ts"],"sourcesContent":["import { intersection } from '../intersection'\n\nconst cases = [\n // Intersection is commutative\n [new Set([1, 2, 3]), new Set([2, 3, 4]), new Set([2, 3])],\n [new Set([2, 3, 4]), new Set([1, 2, 3]), new Set([2, 3])],\n // Intersection of identical sets yields same set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([1, 2, 3])],\n]\n\ndescribe('intersection', () => {\n test.each(cases)('calculates the intersection of the two sets', (a, b, expected) => {\n expect(intersection(a, b)).toEqual(expected)\n })\n})\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAAA,EACxD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAAA;AAAA,EAExD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,gBAAgB,MAAM;AAC7B,OAAK,KAAK,KAAK,EAAE,+CAA+C,CAAC,GAAG,GAAG,aAAa;AAClF,WAAO,aAAa,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EAC7C,CAAC;AACH,CAAC;","names":[]}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- var import_union = require("../union");
3
- const cases = [
4
- // Union is commutative
5
- [/* @__PURE__ */ new Set([1, 2]), /* @__PURE__ */ new Set([3, 4]), /* @__PURE__ */ new Set([1, 2, 3, 4])],
6
- [/* @__PURE__ */ new Set([3, 4]), /* @__PURE__ */ new Set([1, 2]), /* @__PURE__ */ new Set([1, 2, 3, 4])],
7
- // Union of identical sets yields same set
8
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3])]
9
- ];
10
- describe("union", () => {
11
- test.each(cases)("calculates the union of the two sets", (a, b, expected) => {
12
- expect((0, import_union.union)(a, b)).toEqual(expected);
13
- });
14
- });
15
- //# sourceMappingURL=union.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/union.spec.ts"],"sourcesContent":["import { union } from '../union'\n\nconst cases = [\n // Union is commutative\n [new Set([1, 2]), new Set([3, 4]), new Set([1, 2, 3, 4])],\n [new Set([3, 4]), new Set([1, 2]), new Set([1, 2, 3, 4])],\n // Union of identical sets yields same set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([1, 2, 3])],\n]\n\ndescribe('union', () => {\n test.each(cases)('calculates the union of the two sets', (a, b, expected) => {\n expect(union(a, b)).toEqual(expected)\n })\n})\n"],"mappings":";AAAA,mBAAsB;AAEtB,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA,EACxD,CAAC,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA;AAAA,EAExD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,SAAS,MAAM;AACtB,OAAK,KAAK,KAAK,EAAE,wCAAwC,CAAC,GAAG,GAAG,aAAa;AAC3E,eAAO,oBAAM,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EACtC,CAAC;AACH,CAAC;","names":[]}
@@ -1,14 +0,0 @@
1
- import { union } from "../union";
2
- const cases = [
3
- // Union is commutative
4
- [/* @__PURE__ */ new Set([1, 2]), /* @__PURE__ */ new Set([3, 4]), /* @__PURE__ */ new Set([1, 2, 3, 4])],
5
- [/* @__PURE__ */ new Set([3, 4]), /* @__PURE__ */ new Set([1, 2]), /* @__PURE__ */ new Set([1, 2, 3, 4])],
6
- // Union of identical sets yields same set
7
- [/* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3]), /* @__PURE__ */ new Set([1, 2, 3])]
8
- ];
9
- describe("union", () => {
10
- test.each(cases)("calculates the union of the two sets", (a, b, expected) => {
11
- expect(union(a, b)).toEqual(expected);
12
- });
13
- });
14
- //# sourceMappingURL=union.spec.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/lib/spec/union.spec.ts"],"sourcesContent":["import { union } from '../union'\n\nconst cases = [\n // Union is commutative\n [new Set([1, 2]), new Set([3, 4]), new Set([1, 2, 3, 4])],\n [new Set([3, 4]), new Set([1, 2]), new Set([1, 2, 3, 4])],\n // Union of identical sets yields same set\n [new Set([1, 2, 3]), new Set([1, 2, 3]), new Set([1, 2, 3])],\n]\n\ndescribe('union', () => {\n test.each(cases)('calculates the union of the two sets', (a, b, expected) => {\n expect(union(a, b)).toEqual(expected)\n })\n})\n"],"mappings":"AAAA,SAAS,aAAa;AAEtB,MAAM,QAAQ;AAAA;AAAA,EAEZ,CAAC,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA,EACxD,CAAC,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC;AAAA;AAAA,EAExD,CAAC,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,oBAAI,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,SAAS,MAAM;AACtB,OAAK,KAAK,KAAK,EAAE,wCAAwC,CAAC,GAAG,GAAG,aAAa;AAC3E,WAAO,MAAM,GAAG,CAAC,CAAC,EAAE,QAAQ,QAAQ;AAAA,EACtC,CAAC;AACH,CAAC;","names":[]}