Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NaN.js 329B

12345678910111213141516
  1. var test = require('tape');
  2. var equal = require('../');
  3. test('NaN and 0 values', function (t) {
  4. t.ok(equal(NaN, NaN));
  5. t.notOk(equal(0, NaN));
  6. t.ok(equal(0, 0));
  7. t.notOk(equal(0, 1));
  8. t.end();
  9. });
  10. test('nested NaN values', function (t) {
  11. t.ok(equal([ NaN, 1, NaN ], [ NaN, 1, NaN ]));
  12. t.end();
  13. });