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 a9acf21..6a389d7 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -358,6 +358,12 @@ pub fn trim_zero_width_non_breaking_space_test() {
|> should.equal("hats\u{FEFF}")
}
+pub fn trim_comma_test() {
+ "hats,"
+ |> string.trim
+ |> should.equal(",hats,")
+}
+
pub fn starts_with_test() {
"theory"
|> string.starts_with("")