diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 029b7cde8a06f8..64852a8bca38b7 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -3231,4 +3231,9 @@ assert.strictEqual( util.inspect(123456789.12345678, { numericSeparator: true }), '123_456_789.123_456_78' ); + + assert.strictEqual( + util.inspect(-123456789.12345678, { numericSeparator: true }), + '-123_456_789.123_456_78' + ); }