aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/string_test.gleam6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam
index 15ace70..9e1b0b1 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -109,3 +109,9 @@ pub fn join_test() {
|> string.join(with: "-")
|> should.equal("Hello-world!")
}
+
+pub fn trim_test() {
+ " hats \n"
+ |> string.trim()
+ |> should.equal("hats")
+}