diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-04-23 11:36:09 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-04-23 11:36:09 -0300 |
commit | 9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed (patch) | |
tree | 50d7ec68ff36d2fa017b970b11985c6cce5861aa /testes/pm.lua | |
parent | 50fd8d03c33bbe52ac5b34c4eb748197b349cedd (diff) | |
download | lua-9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed.tar.gz lua-9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed.tar.bz2 lua-9b014d4bcd4ebadb523f1c1a1d38148d8526e5ed.zip |
Details (typos in comments)
Diffstat (limited to 'testes/pm.lua')
-rw-r--r-- | testes/pm.lua | 4 |
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', '') | |||
23 | assert(a == 1 and b == 0) | 23 | assert(a == 1 and b == 0) |
24 | a,b = string.find('a\0o a\0o a\0o', 'a', 1) -- first position | 24 | a,b = string.find('a\0o a\0o a\0o', 'a', 1) -- first position |
25 | assert(a == 1 and b == 1) | 25 | assert(a == 1 and b == 1) |
26 | a,b = string.find('a\0o a\0o a\0o', 'a\0o', 2) -- starts in the midle | 26 | a,b = string.find('a\0o a\0o a\0o', 'a\0o', 2) -- starts in the middle |
27 | assert(a == 5 and b == 7) | 27 | assert(a == 5 and b == 7) |
28 | a,b = string.find('a\0o a\0o a\0o', 'a\0o', 9) -- starts in the midle | 28 | a,b = string.find('a\0o a\0o a\0o', 'a\0o', 9) -- starts in the middle |
29 | assert(a == 9 and b == 11) | 29 | assert(a == 9 and b == 11) |
30 | a,b = string.find('a\0a\0a\0a\0\0ab', '\0ab', 2); -- finds at the end | 30 | a,b = string.find('a\0a\0a\0a\0\0ab', '\0ab', 2); -- finds at the end |
31 | assert(a == 9 and b == 11); | 31 | assert(a == 9 and b == 11); |