Skip to content

Commit

Permalink
Merge pull request #3985 from rmahdav/fix-differnce-test-2
Browse files Browse the repository at this point in the history
Fix an error in expected value of difference set method
  • Loading branch information
ljharb authored Jan 11, 2024
2 parents c8cd136 + 080f11f commit c2aaae4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2aaae4

Please sign in to comment.