Faltam testes de ftp e smtp. O resto passa.
This commit is contained in:
parent
d7e80592a6
commit
7da19138e3
9 changed files with 141 additions and 148 deletions
|
@ -30,7 +30,7 @@ end
|
|||
|
||||
local check_parse_path = function(path, expect)
|
||||
local parsed = URL.parse_path(path)
|
||||
for i = 1, max(getn(parsed), getn(expect)) do
|
||||
for i = 1, math.max(table.getn(parsed), table.getn(expect)) do
|
||||
if parsed[i] ~= expect[i] then
|
||||
print(path)
|
||||
write("segment: ", i, " = '", Code.hexa(tostring(parsed[i])),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue