PHP 7.4.33
Preview: cmp.js Size: 446 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/deep-is/test/cmp.js
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();
});

Directory Contents

Dirs: 0 × Files: 3
Name Size Perms Modified Actions
446 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
329 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
343 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).