summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-21 13:45:27 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-21 13:45:27 -0400
commit373ca257592c99f1fc300e8b2a97e5aa6a13eae2 (patch)
tree8b6b62ea655a77ebe06115ca869f53c15e4e5410 /test
parent13c80d5f597c5c69ed312bb881826e819bf84d30 (diff)
downloadmc-373ca257592c99f1fc300e8b2a97e5aa6a13eae2.tar.gz
Correct support for zero/space padded negative int
We would either print '- 123' or 000000-123' in the past. Fixed.
Diffstat (limited to 'test')
-rw-r--r--test/stdfmtpad.myr3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/stdfmtpad.myr b/test/stdfmtpad.myr
index b566017..f836611 100644
--- a/test/stdfmtpad.myr
+++ b/test/stdfmtpad.myr
@@ -7,5 +7,8 @@ const main = {
std.put("%01s\n", "a")
std.put("%10i\n", 10)
std.put("%010i\n", 10)
+ std.put("%010ui\n", -1)
+ std.put("%010i\n", -1)
+ std.put("%10i\n", -1)
std.put("%3i\n", 100000)
}