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.

neg-vs-pos-0.js 343B

123456789101112131415
  1. var test = require('tape');
  2. var equal = require('../');
  3. test('0 values', function (t) {
  4. t.ok(equal( 0, 0), ' 0 === 0');
  5. t.ok(equal( 0, +0), ' 0 === +0');
  6. t.ok(equal(+0, +0), '+0 === +0');
  7. t.ok(equal(-0, -0), '-0 === -0');
  8. t.notOk(equal(-0, 0), '-0 !== 0');
  9. t.notOk(equal(-0, +0), '-0 !== +0');
  10. t.end();
  11. });