diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/iodata.gleam | 9 |
1 files changed, 7 insertions, 2 deletions
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) } |