aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/string_test.gleam7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam
index f3c56a8..c18d77a 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -176,6 +176,13 @@ pub fn trim_right_test() {
|> should.equal(" hats")
}
+pub fn trim_unicode_test() {
+ // unicode spaces
+ "hats a "
+ |> string.trim
+ |> should.equal("hats a ")
+}
+
pub fn starts_with_test() {
"theory"
|> string.starts_with("")