aboutsummaryrefslogtreecommitdiff
path: root/test/urltest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/urltest.lua')
-rw-r--r--test/urltest.lua2
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
31local check_parse_path = function(path, expect) 31local 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])),