Merge pull request #3985 from rmahdav/fix-differnce-test-2

Fix an error in expected value of difference set method
This commit is contained in:
Jordan Harband 2024-01-10 17:38:56 -08:00 committed by GitHub
commit c2aaae4cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 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);