diff options
author | inoas <mail@inoas.com> | 2022-04-08 23:34:55 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-04-10 20:39:22 +0100 |
commit | 12a0f53eb5c95e774fc537398a27ed42f3873ab6 (patch) | |
tree | d1788e0b157f8307533302e38b35adca04203eab /test | |
parent | 9cc543b27b01740a4e9b6a9307ab0831992e08a2 (diff) | |
download | gleam_stdlib-12a0f53eb5c95e774fc537398a27ed42f3873ab6.tar.gz gleam_stdlib-12a0f53eb5c95e774fc537398a27ed42f3873ab6.zip |
fix tap_test
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/function_test.gleam | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/gleam/function_test.gleam b/test/gleam/function_test.gleam index 7fab989..b6e9898 100644 --- a/test/gleam/function_test.gleam +++ b/test/gleam/function_test.gleam @@ -118,6 +118,9 @@ pub fn constant_test() { pub fn tap_test() { "Thanks Joe & Louis" - |> function.tap(io.print) + |> function.tap(fn(s: String) { + string.append(s, "... and Jose!") + Nil + }) |> should.equal("Thanks Joe & Louis") } |