diff options
author | Louis Pilfold <louis@lpil.uk> | 2019-03-15 14:50:11 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2019-03-15 14:54:02 +0000 |
commit | d613e26ebd67b704ab58c28cc559ee01ae03b547 (patch) | |
tree | 96e484695221b0a39dee2ffc51aa0c0b7249d87e /gen/iodata.erl | |
parent | 1ce9a14ba69c593bb40998a5a49d3f066a4aa07a (diff) | |
download | gleam_stdlib-d613e26ebd67b704ab58c28cc559ee01ae03b547.tar.gz gleam_stdlib-d613e26ebd67b704ab58c28cc559ee01ae03b547.zip |
Erase directly called capture funs
Diffstat (limited to 'gen/iodata.erl')
-rw-r--r-- | gen/iodata.erl | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/gen/iodata.erl b/gen/iodata.erl index afc2803..5503bf1 100644 --- a/gen/iodata.erl +++ b/gen/iodata.erl @@ -21,15 +21,8 @@ byte_size(A) -> -ifdef(TEST). iodata_test() -> - Iodata = (fun(Capture1) -> - prepend(Capture1, <<"H">>) - end)((fun(Capture1) -> - append(Capture1, <<" world!">>) - end)((fun(Capture1) -> - append(Capture1, <<",">>) - end)(from([<<"ello">>])))), - (fun(Capture1) -> - expect:equal(Capture1, <<"Hello, world!">>) - end)(to_string(Iodata)), - (fun(Capture1) -> expect:equal(Capture1, 13) end)(byte_size(Iodata)). + Iodata = prepend(append(append(from([<<"ello">>]), <<",">>), <<" world!">>), + <<"H">>), + expect:equal(to_string(Iodata), <<"Hello, world!">>), + expect:equal(byte_size(Iodata), 13). -endif. |