@substack wrote in https://github.com/substack/tape/issues/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.
Activity
kumavis commentedon Aug 30, 2019
+1 to this feature, and seeing it get into
tapesimoelmou commentedon Sep 25, 2019
+1 to this feature
[Breaking] compare `Map`, `Set`, `WeakMap`, `WeakSet` matching node a…
[Breaking] compare `Map`, `Set`, `WeakMap`, `WeakSet` matching node a…
[Breaking] compare `Map`, `Set`, `WeakMap`, `WeakSet` matching node a…