diff options
Diffstat (limited to 'testes/utf8.lua')
-rw-r--r-- | testes/utf8.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/utf8.lua b/testes/utf8.lua index acbb181d..5954f6e8 100644 --- a/testes/utf8.lua +++ b/testes/utf8.lua | |||
@@ -30,8 +30,8 @@ local function checksyntax (s, t) | |||
30 | assert(assert(load(ts))() == s) | 30 | assert(assert(load(ts))() == s) |
31 | end | 31 | end |
32 | 32 | ||
33 | assert(utf8.offset("alo", 5) == nil) | 33 | assert(not utf8.offset("alo", 5)) |
34 | assert(utf8.offset("alo", -4) == nil) | 34 | assert(not utf8.offset("alo", -4)) |
35 | 35 | ||
36 | -- 'check' makes several tests over the validity of string 's'. | 36 | -- 'check' makes several tests over the validity of string 's'. |
37 | -- 't' is the list of codepoints of 's'. | 37 | -- 't' is the list of codepoints of 's'. |