| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b43faf0 commit f947f72
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -143,6 +143,13 @@ assert.strictEqual( | |||
| 143 | 143 | '1180591620717411303424n 12345678901234567890123n' | |
| 144 | 144 | ); | |
| 145 | 145 | ||
| 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 | + | ||
| 146 | 153 | // Float format specifier | |
| 147 | 154 | assert.strictEqual(util.format('%f'), '%f'); | |
| 148 | 155 | assert.strictEqual(util.format('%f', 42.0), '42'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments