number.js 395 B

123456789101112
  1. var inspect = require('../');
  2. var test = require('tape');
  3. test('negative zero', function (t) {
  4. t.equal(inspect(0), '0', 'inspect(0) === "0"');
  5. t.equal(inspect(Object(0)), 'Object(0)', 'inspect(Object(0)) === "Object(0)"');
  6. t.equal(inspect(-0), '-0', 'inspect(-0) === "-0"');
  7. t.equal(inspect(Object(-0)), 'Object(-0)', 'inspect(Object(-0)) === "Object(-0)"');
  8. t.end();
  9. });