-
Notifications
You must be signed in to change notification settings - Fork 30.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, assert.deepEqual used on maps and sets was not functioning correctly. This change adds support for correctly comparing Maps and Sets. For Maps, comparison is done by iterating over each item in the first Map and verifying that the key exists and the value is the same (depending on whether strict is applied). For Sets, each item is iterated over in the first Set and checked if it exists in the other Set. For both Maps and Sets, the size of both being compared is checked as well.
- Loading branch information
Showing
2 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters