diff options
author | Étienne Lévesque <contact@etiennel.dev> | 2024-07-27 15:41:14 -0400 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-07-29 13:18:56 +0100 |
commit | b83dfa364f39468775f16772a14354d1db0e8035 (patch) | |
tree | 21f21ef4a95cddc593bbc6ee72dec80a70bffa5b /test | |
parent | 82550d903c1c3dce4366ec151ba13109123cfff5 (diff) | |
download | gleam_stdlib-b83dfa364f39468775f16772a14354d1db0e8035.tar.gz gleam_stdlib-b83dfa364f39468775f16772a14354d1db0e8035.zip |
fix: Fix js trim implementation removing commas
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/string_test.gleam | 6 |
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("") |