Welcome to mirror list, hosted at ThFree Co, Russian Federation.

number.js « test « object-inspect « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 448304e5988283055fe938cd7db40c081d9b6b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var inspect = require('../');
var test = require('tape');

test('negative zero', function (t) {
    t.equal(inspect(0), '0', 'inspect(0) === "0"');
    t.equal(inspect(Object(0)), 'Object(0)', 'inspect(Object(0)) === "Object(0)"');

    t.equal(inspect(-0), '-0', 'inspect(-0) === "-0"');
    t.equal(inspect(Object(-0)), 'Object(-0)', 'inspect(Object(-0)) === "Object(-0)"');

    t.end();
});