aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/string_test.gleam12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam
index 9e1b0b1..01e95eb 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -115,3 +115,15 @@ pub fn trim_test() {
|> string.trim()
|> should.equal("hats")
}
+
+pub fn trim_left_test() {
+ " hats \n"
+ |> string.trim_left()
+ |> should.equal("hats \n")
+}
+
+pub fn trim_right_test() {
+ " hats \n"
+ |> string.trim_right()
+ |> should.equal(" hats")
+}