Skip to content

Commit 1e78643

Browse files
committed
test: add coverage for util.inspect()
Coverage stats indicate that there is no coverage for util.inspect() with a negative number and a numeric separator. Add a test case. Refs: https://coverage.nodejs.org/coverage-df507758e6c35534/lib/internal/util/inspect.js.html#L1463
1 parent 4dd1f42 commit 1e78643

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-util-inspect.js

+5
Original file line numberDiff line numberDiff line change
@@ -3231,4 +3231,9 @@ assert.strictEqual(
32313231
util.inspect(123456789.12345678, { numericSeparator: true }),
32323232
'123_456_789.123_456_78'
32333233
);
3234+
3235+
assert.strictEqual(
3236+
util.inspect(-123456789.12345678, { numericSeparator: true }),
3237+
'-123_456_789.123_456_78'
3238+
);
32343239
}

0 commit comments

Comments
 (0)