summaryrefslogtreecommitdiff
path: root/test/stdfmtpad.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-21 13:20:34 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-21 13:20:34 -0400
commitf19346b49ebab6e9b8838f83f2aa51a98bd082ae (patch)
tree73382bb907471e9979205da74acd64c9bc6f90d6 /test/stdfmtpad.myr
parent49a1983f6bea2adfbc49056ef0fec723c37f08bb (diff)
downloadmc-f19346b49ebab6e9b8838f83f2aa51a98bd082ae.tar.gz
Add support for padded strings.
Feeping Creaturinm.
Diffstat (limited to 'test/stdfmtpad.myr')
-rw-r--r--test/stdfmtpad.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/stdfmtpad.myr b/test/stdfmtpad.myr
new file mode 100644
index 0000000..33ea8bc
--- /dev/null
+++ b/test/stdfmtpad.myr
@@ -0,0 +1,8 @@
+use std
+
+const main = {
+ std.put("%10s\n", "abcd")
+ std.put("%010s\n", "bdcae")
+ std.put("%10i\n", 10)
+ std.put("%010i\n", 10)
+}