aswi2020vldc-gitlab/templetes/node_modules/object-inspect/test/number.js @ 56f6c6df
1 |
var inspect = require('../'); |
---|---|
2 |
var test = require('tape'); |
3 |
|
4 |
test('negative zero', function (t) { |
5 |
t.equal(inspect(0), '0', 'inspect(0) === "0"'); |
6 |
t.equal(inspect(Object(0)), 'Object(0)', 'inspect(Object(0)) === "Object(0)"'); |
7 |
|
8 |
t.equal(inspect(-0), '-0', 'inspect(-0) === "-0"'); |
9 |
t.equal(inspect(Object(-0)), 'Object(-0)', 'inspect(Object(-0)) === "Object(-0)"'); |
10 |
|
11 |
t.end(); |
12 |
});
|