diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/function_test.gleam | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gleam/function_test.gleam b/test/gleam/function_test.gleam index 27e8b0d..7fab989 100644 --- a/test/gleam/function_test.gleam +++ b/test/gleam/function_test.gleam @@ -6,6 +6,7 @@ import gleam/pair import gleam/list import gleam/result import gleam/string +import gleam/io pub fn compose_test() { let add_two = fn(int: Int) { int + 2 } @@ -114,3 +115,9 @@ pub fn constant_test() { |> pair.map_first(function.constant(42)) |> should.equal(#(42, 2)) } + +pub fn tap_test() { + "Thanks Joe & Louis" + |> function.tap(io.print) + |> should.equal("Thanks Joe & Louis") +} |