From ac2723d31f917a9ad32957c8b1639b70dee1a99d Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 12 Aug 2021 19:15:35 +0100 Subject: Enable codepoint test --- test/gleam/string_test.gleam | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam index 8ac6d9c..3612dbb 100644 --- a/test/gleam/string_test.gleam +++ b/test/gleam/string_test.gleam @@ -1,6 +1,8 @@ import gleam/string import gleam/should import gleam/order +import gleam/io +import gleam/bit_string pub fn length_test() { string.length("ĆŸā†‘e̊") @@ -349,9 +351,7 @@ pub fn utf_codepoint_test() { |> should.be_error } -if erlang { - pub fn bit_string_utf_codepoint_test() { - assert Ok(snake) = string.utf_codepoint(128013) - should.equal(<>, <<"šŸ":utf8>>) - } +pub fn bit_string_utf_codepoint_test() { + assert Ok(snake) = string.utf_codepoint(128013) + should.equal(<>, <<"šŸ":utf8>>) } -- cgit v1.2.3