|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
329 bytes
|
| Line | |
|---|
| 1 | var test = require('tape');
|
|---|
| 2 | var equal = require('../');
|
|---|
| 3 |
|
|---|
| 4 | test('NaN and 0 values', function (t) {
|
|---|
| 5 | t.ok(equal(NaN, NaN));
|
|---|
| 6 | t.notOk(equal(0, NaN));
|
|---|
| 7 | t.ok(equal(0, 0));
|
|---|
| 8 | t.notOk(equal(0, 1));
|
|---|
| 9 | t.end();
|
|---|
| 10 | });
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | test('nested NaN values', function (t) {
|
|---|
| 14 | t.ok(equal([ NaN, 1, NaN ], [ NaN, 1, NaN ]));
|
|---|
| 15 | t.end();
|
|---|
| 16 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.