From 12a0f53eb5c95e774fc537398a27ed42f3873ab6 Mon Sep 17 00:00:00 2001 From: inoas Date: Fri, 8 Apr 2022 23:34:55 +0200 Subject: fix tap_test --- test/gleam/function_test.gleam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') 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") } -- cgit v1.2.3