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.

12 lines
395 B

4 years ago
  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. });