Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set support in same members #1583

Merged
merged 9 commits into from
Feb 12, 2024
Prev Previous commit
Next Next commit
Add sameMembers test for Set
  • Loading branch information
koddsson committed Feb 11, 2024
commit 1a21d153418a9a6b890dd2e6ef2b1347065ee85b
2 changes: 2 additions & 0 deletions test/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -1909,6 +1909,8 @@ describe('assert', function () {
assert.sameMembers([4, 2], [4, 2]);
assert.sameMembers([4, 2, 2], [4, 2, 2]);

assert.sameMembers(new Set([1,2,3]), new Set([3,2,1]));

err(function() {
assert.sameMembers([], [1, 2], 'blah');
}, 'blah: expected [] to have the same members as [ 1, 2 ]');
Expand Down