aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/string_test.gleam10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam
index 2092b8b..37671d3 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -510,6 +510,16 @@ pub fn bit_string_utf_codepoint_test() {
should.equal(<<snake:utf8_codepoint>>, <<"🐍":utf8>>)
}
+pub fn to_ints_test() {
+ "abc"
+ |> string.to_ints
+ |> should.equal([97, 98, 99])
+
+ "🐍"
+ |> string.to_ints
+ |> should.equal([128013])
+}
+
pub fn to_option_test() {
""
|> string.to_option