caolan / caolan/nodeunit

deepEqual doesn't work on Maps or Sets

Open
#306 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

```
var nodeunit = require('nodeunit');
nodeunit.assert.deepEqual(new Map([[1,2]]), new Map([[3,4]]));
// expected: exception
nodeunit.assert.deepEqual(new Set([1]), new Set([2]));
// expected: exception
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the nodeunit.assert.deepEqual entry point and locate the existing tests for deep equality. Reproduce the Map and Set examples from this issue, then add coverage so unequal collections are rejected while matching collections retain the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.