summaryrefslogtreecommitdiff
path: root/lib/std/test
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-25 16:14:38 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-25 16:14:38 -0800
commit52eca667bbd1cf5a929d3f2352c3c1ee8e91625d (patch)
tree63e24e0a4d59688bb25c632d23cccea57209bcfd /lib/std/test
parent68a437bb6d370781e18ad1b794cc34c21dd5b361 (diff)
downloadmc-52eca667bbd1cf5a929d3f2352c3c1ee8e91625d.tar.gz
Formatting as a state machine.
Diffstat (limited to 'lib/std/test')
-rw-r--r--lib/std/test/fmt.myr7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/std/test/fmt.myr b/lib/std/test/fmt.myr
index be83952..faab297 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -109,11 +109,8 @@ const installed = {
x = 0
p = [.x=0, .y=0]
- std.fmtinstall(std.typeof(x), intfmt, [][:])
- std.fmtinstall(std.typeof(p), pairfmt, [
- ("x", true),
- ("y", false)
- ][:])
+ std.fmtinstall(std.typeof(x), intfmt)
+ std.fmtinstall(std.typeof(p), pairfmt)
/* single value */
check("formatted an int: 0", "{}", 0)