aboutsummaryrefslogtreecommitdiff
path: root/gen
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-03-12 22:25:30 +0000
committerLouis Pilfold <louis@lpil.uk>2019-03-12 23:00:55 +0000
commitd445ce0d0c57f1acbc33e081c015750c78401067 (patch)
treefe1618c60a1e1f7aa2bf49645d3231da8ba9710e /gen
parent447cd2ba25ac0414ed7604a49484a7590f40d202 (diff)
downloadgleam_stdlib-d445ce0d0c57f1acbc33e081c015750c78401067.tar.gz
gleam_stdlib-d445ce0d0c57f1acbc33e081c015750c78401067.zip
Improve seq ergonomics
Fixes https://github.com/lpil/gleam/issues/77
Diffstat (limited to 'gen')
-rw-r--r--gen/iodata.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/gen/iodata.erl b/gen/iodata.erl
index a17f87a..afc2803 100644
--- a/gen/iodata.erl
+++ b/gen/iodata.erl
@@ -28,6 +28,8 @@ iodata_test() ->
end)((fun(Capture1) ->
append(Capture1, <<",">>)
end)(from([<<"ello">>])))),
- expect:equal(to_string(Iodata), <<"Hello, world!">>),
- expect:equal(byte_size(Iodata), 13).
+ (fun(Capture1) ->
+ expect:equal(Capture1, <<"Hello, world!">>)
+ end)(to_string(Iodata)),
+ (fun(Capture1) -> expect:equal(Capture1, 13) end)(byte_size(Iodata)).
-endif.