aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2021-08-12 19:15:35 +0100
committerLouis Pilfold <louis@lpil.uk>2021-08-12 19:15:35 +0100
commitac2723d31f917a9ad32957c8b1639b70dee1a99d (patch)
tree6b50739fd3f899cdb85147200f95fe1e77304af2
parent817aa63ca51eb6f8d28df6904fc0061e71d8a124 (diff)
downloadgleam_stdlib-ac2723d31f917a9ad32957c8b1639b70dee1a99d.tar.gz
gleam_stdlib-ac2723d31f917a9ad32957c8b1639b70dee1a99d.zip
Enable codepoint test
-rw-r--r--test/gleam/string_test.gleam10
1 files changed, 5 insertions, 5 deletions
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(<<snake:utf8_codepoint>>, <<"šŸ":utf8>>)
- }
+pub fn bit_string_utf_codepoint_test() {
+ assert Ok(snake) = string.utf_codepoint(128013)
+ should.equal(<<snake:utf8_codepoint>>, <<"šŸ":utf8>>)
}