diff options
Diffstat (limited to 'lib/pure/strformat.nim')
-rw-r--r-- | lib/pure/strformat.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pure/strformat.nim b/lib/pure/strformat.nim index 5dbdf8282..ccbf6673e 100644 --- a/lib/pure/strformat.nim +++ b/lib/pure/strformat.nim @@ -692,12 +692,11 @@ when isMainModule: check &"{-123.456:.3f}", "-123.456" check &"{123.456:1g}", "123.456" check &"{123.456:.1f}", "123.5" - check &"{123.456:.0f}", "123." - #check &"{123.456:.0f}", "123." + check &"{123.456:.0f}", "123" check &"{123.456:>9.3f}", " 123.456" check &"{123.456:9.3f}", " 123.456" check &"{123.456:>9.4f}", " 123.4560" - check &"{123.456:>9.0f}", " 123." + check &"{123.456:>9.0f}", " 123" check &"{123.456:<9.4f}", "123.4560 " # Float (scientific) tests |