diff options
Diffstat (limited to 'testes/utf8.lua')
-rw-r--r-- | testes/utf8.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testes/utf8.lua b/testes/utf8.lua index 6010d1ad..461e223c 100644 --- a/testes/utf8.lua +++ b/testes/utf8.lua | |||
@@ -112,6 +112,12 @@ do | |||
112 | end | 112 | end |
113 | errorcodes("ab\xff") | 113 | errorcodes("ab\xff") |
114 | errorcodes("\u{110000}") | 114 | errorcodes("\u{110000}") |
115 | |||
116 | -- calling interation function with invalid arguments | ||
117 | local f = utf8.codes("") | ||
118 | assert(f("", 2) == nil) | ||
119 | assert(f("", -1) == nil) | ||
120 | assert(f("", math.mininteger) == nil) | ||
115 | end | 121 | end |
116 | 122 | ||
117 | -- error in initial position for offset | 123 | -- error in initial position for offset |