summaryrefslogtreecommitdiff
path: root/lib/std/test/fmt.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-10 00:18:39 -0700
committerOri Bernstein <ori@eigenstate.org>2016-05-10 00:18:39 -0700
commit2f8d3d7f2e4e3592b0a2fce30a4ec218aafe9bce (patch)
tree0d879d90ae3815febe6bc0777f44b6004cf69195 /lib/std/test/fmt.myr
parent5c0705ccfaeef1fbb08762229fb66a7a977baaba (diff)
downloadmc-2f8d3d7f2e4e3592b0a2fce30a4ec218aafe9bce.tar.gz
Align union tag when entering subtype.
Diffstat (limited to 'lib/std/test/fmt.myr')
-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 e35f142..44e5edd 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -28,6 +28,10 @@ const check = {expected, fmt, args : ...
;;
}
+type aligncheck = union
+ `Foo
+ `Bar int64
+;;
const main = {
builtins()
@@ -62,6 +66,7 @@ const builtins = {
check("666.91972", "{}", 666.91972)
check("1.0001", "{}", 1.0001)
check("0.000101323461002", "{}", 0.000101323461002)
+ check("(1, `Bar 123, `Foo )", "{}", (1, `Bar 123, `Foo))
/*
compound types, followed by single value to make