GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: improve util-format code coverage · nodejs/node@2c813d8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-util-format.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-util-format.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-util-format.js
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ assert.strictEqual(
143143
'1180591620717411303424n 12345678901234567890123n'
144144
);
145145

146+
assert.strictEqual(
147+
util.formatWithOptions(
148+
{ numericSeparator: true },
149+
'%i %d', 1180591620717411303424n, 12345678901234567890123n),
150+
'1_180_591_620_717_411_303_424n 12_345_678_901_234_567_890_123n'
151+
);
152+
146153
// Float format specifier
147154
assert.strictEqual(util.format('%f'), '%f');
148155
assert.strictEqual(util.format('%f', 42.0), '42');

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.