Spaces:
Sleeping
Sleeping
Download node_modules/deep-is/test/cmp.js from andy-gg/my-project: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/andy-gg/my-project/resolve/main/node_modules/deep-is/test/cmp.js
- Command line
-
hf download hf://spaces/andy-gg/my-project/node_modules/deep-is/test/cmp.js
-
curl -L -o cmp.js https://huggingface.co/spaces/andy-gg/my-project/resolve/main/node_modules/deep-is/test/cmp.js
446 Bytes
| 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(); | |
| }); | |