From b464e46886e6c61d9cb5d7f0f5d5edb1bbdc55a0 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Sat, 25 May 2024 23:14:05 -0400 Subject: Add test for javascript and erlang trimming mismatch --- test/gleam/string_test.gleam | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') 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("") -- cgit v1.2.3