The difference between two sets is `[1]`.

This commit is contained in:
Rezvan Mahdavi Hezaveh 2024-01-11 00:23:14 +00:00
parent c8cd136888
commit 080f11f2ad
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class MySet extends Set {
const s1 = new MySet([1, 2]);
const s2 = new Set([2, 3]);
const expected = [2];
const expected = [1];
const combined = s1.difference(s2);
assert.compareArray([...combined], expected);