From d445ce0d0c57f1acbc33e081c015750c78401067 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 12 Mar 2019 22:25:30 +0000 Subject: Improve seq ergonomics Fixes https://github.com/lpil/gleam/issues/77 --- src/iodata.gleam | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/iodata.gleam b/src/iodata.gleam index 4d81e38..7bdecec 100644 --- a/src/iodata.gleam +++ b/src/iodata.gleam @@ -24,6 +24,11 @@ test iodata { |> append(_, " world!") |> prepend(_, "H") - expect:equal(to_string(iodata), "Hello, world!") - expect:equal(byte_size(iodata), 13) + iodata + |> to_string + |> expect:equal(_, "Hello, world!") + + iodata + |> byte_size + |> expect:equal(_, 13) } -- cgit v1.2.3