|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
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.