aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/string_test.gleam3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/gleam/string_test.gleam b/test/gleam/string_test.gleam
index 8ff4f39..ffd2f9b 100644
--- a/test/gleam/string_test.gleam
+++ b/test/gleam/string_test.gleam
@@ -706,6 +706,9 @@ pub fn utf_codepoint_test() {
string.utf_codepoint(55_296)
|> should.be_error
+
+ string.utf_codepoint(-1)
+ |> should.be_error
}
pub fn bit_array_utf_codepoint_test() {