-
-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Description
@substack wrote in tape-testing/tape#342:
Once this is merged into core I will release a new major version of deep-equal based on the new algorithm that tape can be updated to support.
As far as I can see, node 8 has a deepEqual that can properly compare Maps and Sets:
node-v8.9.4-linux-x64 $ ./bin/node
> const assert = require('assert')
undefined
> assert.deepEqual(new Set('a'), new Set('a'))
undefined
> assert.deepEqual(new Set('a'), new Set('b'))
AssertionError [ERR_ASSERTION]: Set { 'a' } deepEqual Set { 'b' }
>
I find Sets and Maps very useful and want to use them with t.deepEqual() in tape.
Sawtaytoes, wibily, reallistic, Tyler-Murphy, kumavis and 1 more
Metadata
Metadata
Assignees
Labels
No labels