From b83dfa364f39468775f16772a14354d1db0e8035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20L=C3=A9vesque?= Date: Sat, 27 Jul 2024 15:41:14 -0400 Subject: =?UTF-8?q?fix:=C2=A0Fix=20js=20trim=20implementation=20removing?= =?UTF-8?q?=20commas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/gleam/string_test.gleam | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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("") -- cgit v1.2.3