diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2002-12-03 07:20:34 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2002-12-03 07:20:34 +0000 |
commit | 7da19138e37c4e0123860f1fecbceb80c3d2627d (patch) | |
tree | 8453f003a9ba212807d9c9590c2f2b850d323f0f /test/urltest.lua | |
parent | d7e80592a69c076991ed4f4cc15d5390e14d1f0b (diff) | |
download | luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.tar.gz luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.tar.bz2 luasocket-7da19138e37c4e0123860f1fecbceb80c3d2627d.zip |
Faltam testes de ftp e smtp. O resto passa.
Diffstat (limited to 'test/urltest.lua')
-rw-r--r-- | test/urltest.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/urltest.lua b/test/urltest.lua index da7475a..8ca36fe 100644 --- a/test/urltest.lua +++ b/test/urltest.lua | |||
@@ -30,7 +30,7 @@ end | |||
30 | 30 | ||
31 | local check_parse_path = function(path, expect) | 31 | local check_parse_path = function(path, expect) |
32 | local parsed = URL.parse_path(path) | 32 | local parsed = URL.parse_path(path) |
33 | for i = 1, max(getn(parsed), getn(expect)) do | 33 | for i = 1, math.max(table.getn(parsed), table.getn(expect)) do |
34 | if parsed[i] ~= expect[i] then | 34 | if parsed[i] ~= expect[i] then |
35 | print(path) | 35 | print(path) |
36 | write("segment: ", i, " = '", Code.hexa(tostring(parsed[i])), | 36 | write("segment: ", i, " = '", Code.hexa(tostring(parsed[i])), |