aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-04-08 23:34:55 +0200
committerLouis Pilfold <louis@lpil.uk>2022-04-10 20:39:22 +0100
commit12a0f53eb5c95e774fc537398a27ed42f3873ab6 (patch)
treed1788e0b157f8307533302e38b35adca04203eab /test
parent9cc543b27b01740a4e9b6a9307ab0831992e08a2 (diff)
downloadgleam_stdlib-12a0f53eb5c95e774fc537398a27ed42f3873ab6.tar.gz
gleam_stdlib-12a0f53eb5c95e774fc537398a27ed42f3873ab6.zip
fix tap_test
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")
}