summaryrefslogtreecommitdiff
path: root/lib/std/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-12-26 12:35:18 -0800
committerOri Bernstein <ori@markovcorp.com>2017-12-26 12:35:18 -0800
commitb1b28999b0f574f815db036dd1ba8318fb1ec35a (patch)
tree703977c052a3871285859ccb4a7b44e97c6f6a37 /lib/std/test
parentc66161595cd3e4638122777d550ab61dc100b973 (diff)
downloadmc-b1b28999b0f574f815db036dd1ba8318fb1ec35a.tar.gz
Fix void slice formatting.
Also cleans up agglomeration of unused variables.
Diffstat (limited to 'lib/std/test')
-rw-r--r--lib/std/test/fmt.myr5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/test/fmt.myr b/lib/std/test/fmt.myr
index 587b1e7..ec3fe85 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -39,6 +39,7 @@ const main = {
const builtins = {
var s : blah
var m : u
+ var v = [void, void][:]
/* basic types */
check(" abcd", "{w=10}", "abcd")
@@ -103,6 +104,10 @@ const builtins = {
check("1,2,3 true", "{j=\\,} {}", [1,2,3][:], true)
check("1}2}3 true", "{j=\\}} {}", [1,2,3][:], true)
check("1... 2... 3 true", "{j=... } {}", [1,2,3][:], true)
+
+ check("[]", "{}", v[:0])
+ check("[void]", "{}", v[:1])
+ check("[void, void]", "{}", v[:2])
}
const installed = {