aboutsummaryrefslogtreecommitdiff
path: root/testes/pm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/pm.lua')
-rw-r--r--testes/pm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/testes/pm.lua b/testes/pm.lua
index 2a0cfb0b..ab19eb5d 100644
--- a/testes/pm.lua
+++ b/testes/pm.lua
@@ -23,9 +23,9 @@ a,b = string.find('alo', '')
23assert(a == 1 and b == 0) 23assert(a == 1 and b == 0)
24a,b = string.find('a\0o a\0o a\0o', 'a', 1) -- first position 24a,b = string.find('a\0o a\0o a\0o', 'a', 1) -- first position
25assert(a == 1 and b == 1) 25assert(a == 1 and b == 1)
26a,b = string.find('a\0o a\0o a\0o', 'a\0o', 2) -- starts in the midle 26a,b = string.find('a\0o a\0o a\0o', 'a\0o', 2) -- starts in the middle
27assert(a == 5 and b == 7) 27assert(a == 5 and b == 7)
28a,b = string.find('a\0o a\0o a\0o', 'a\0o', 9) -- starts in the midle 28a,b = string.find('a\0o a\0o a\0o', 'a\0o', 9) -- starts in the middle
29assert(a == 9 and b == 11) 29assert(a == 9 and b == 11)
30a,b = string.find('a\0a\0a\0a\0\0ab', '\0ab', 2); -- finds at the end 30a,b = string.find('a\0a\0a\0a\0\0ab', '\0ab', 2); -- finds at the end
31assert(a == 9 and b == 11); 31assert(a == 9 and b == 11);