Faltam testes de ftp e smtp. O resto passa.

This commit is contained in:
Diego Nehab 2002-12-03 07:20:34 +00:00
parent d7e80592a6
commit 7da19138e3
9 changed files with 141 additions and 148 deletions

View file

@ -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])),