aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/function_test.gleam5
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")
}