source: imaps-frontend/node_modules/deep-is/test/neg-vs-pos-0.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: 343 bytes
RevLine 
[d565449]1var test = require('tape');
2var equal = require('../');
3
4test('0 values', function (t) {
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.ok(equal(-0, -0), '-0 === -0');
9
10 t.notOk(equal(-0, 0), '-0 !== 0');
11 t.notOk(equal(-0, +0), '-0 !== +0');
12
13 t.end();
14});
15
Note: See TracBrowser for help on using the repository browser.