main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
446 bytes
|
Line | |
---|
1 | var test = require('tape');
|
---|
2 | var equal = require('../');
|
---|
3 |
|
---|
4 | test('equal', function (t) {
|
---|
5 | t.ok(equal(
|
---|
6 | { a : [ 2, 3 ], b : [ 4 ] },
|
---|
7 | { a : [ 2, 3 ], b : [ 4 ] }
|
---|
8 | ));
|
---|
9 | t.end();
|
---|
10 | });
|
---|
11 |
|
---|
12 | test('not equal', function (t) {
|
---|
13 | t.notOk(equal(
|
---|
14 | { x : 5, y : [6] },
|
---|
15 | { x : 5, y : 6 }
|
---|
16 | ));
|
---|
17 | t.end();
|
---|
18 | });
|
---|
19 |
|
---|
20 | test('nested nulls', function (t) {
|
---|
21 | t.ok(equal([ null, null, null ], [ null, null, null ]));
|
---|
22 | t.end();
|
---|
23 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.