mirror of
https://github.com/tc39/test262.git
synced 2025-06-20 22:10:34 +02:00
The difference between two sets is [1]
.
This commit is contained in:
parent
c8cd136888
commit
080f11f2ad
@ -30,7 +30,7 @@ class MySet extends Set {
|
|||||||
|
|
||||||
const s1 = new MySet([1, 2]);
|
const s1 = new MySet([1, 2]);
|
||||||
const s2 = new Set([2, 3]);
|
const s2 = new Set([2, 3]);
|
||||||
const expected = [2];
|
const expected = [1];
|
||||||
const combined = s1.difference(s2);
|
const combined = s1.difference(s2);
|
||||||
|
|
||||||
assert.compareArray([...combined], expected);
|
assert.compareArray([...combined], expected);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user