Skip to content

Commit

Permalink
Add sameMembers test for Set
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Jan 26, 2024
1 parent 3a16211 commit 5d08e91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -1969,6 +1969,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

0 comments on commit 5d08e91

Please sign in to comment.