aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
Diffstat (limited to 'testes')
-rw-r--r--testes/utf8.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/testes/utf8.lua b/testes/utf8.lua
index 86ec1b00..b3b7687f 100644
--- a/testes/utf8.lua
+++ b/testes/utf8.lua
@@ -123,6 +123,9 @@ checkerror("continuation byte", utf8.offset, "𦧺", 1, 2)
123checkerror("continuation byte", utf8.offset, "𦧺", 1, 2) 123checkerror("continuation byte", utf8.offset, "𦧺", 1, 2)
124checkerror("continuation byte", utf8.offset, "\x80", 1) 124checkerror("continuation byte", utf8.offset, "\x80", 1)
125 125
126-- error in indices for len
127checkerror("out of string", utf8.len, "abc", 0, 2)
128checkerror("out of string", utf8.len, "abc", 1, 4)
126 129
127 130
128local s = "hello World" 131local s = "hello World"