Sha256: d1942b16f15601548b0d0e661aff445c03d44309dc9f61ce408b5e54863a75ba

Contents?: true

Size: 446 Bytes

Versions: 128

Compression:

Stored size: 446 Bytes

Contents

var test = require('tape');
var equal = require('../');

test('equal', function (t) {
    t.ok(equal(
        { a : [ 2, 3 ], b : [ 4 ] },
        { a : [ 2, 3 ], b : [ 4 ] }
    ));
    t.end();
});

test('not equal', function (t) {
    t.notOk(equal(
        { x : 5, y : [6] },
        { x : 5, y : 6 }
    ));
    t.end();
});

test('nested nulls', function (t) {
    t.ok(equal([ null, null, null ], [ null, null, null ]));
    t.end();
});

Version data entries

128 entries across 128 versions & 12 rubygems

Version Path
lanes-0.8.0 node_modules/deep-is/test/cmp.js
select_all-rails-0.3.1 node_modules/deep-is/test/cmp.js
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/optionator/node_modules/deep-is/test/cmp.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/optionator/node_modules/deep-is/test/cmp.js
spider-src-0.1.7 lib/spider-src/support/spider/node_modules/escodegen/node_modules/optionator/node_modules/deep-is/test/cmp.js
spider-src-0.1.6 lib/spider-src/support/spider/node_modules/spider-script/node_modules/escodegen/node_modules/optionator/node_modules/deep-is/test/cmp.js
trans-0.5.10 template/node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/node_modules/difflet/node_modules/deep-is/test/cmp.js
trans-0.5.9 template/node_modules/grunt-contrib-nodeunit/node_modules/nodeunit/node_modules/tap/node_modules/difflet/node_modules/deep-is/test/cmp.js