source: imaps-frontend/node_modules/deep-is/test/NaN.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 329 bytes
Line 
1var test = require('tape');
2var equal = require('../');
3
4test('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
13test('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.