aboutsummaryrefslogtreecommitdiff
path: root/test/urltest.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2013-04-17 19:13:28 -0700
committerDiego Nehab <diego.nehab@gmail.com>2013-04-17 19:13:28 -0700
commit00435529bb9a3a6614e9934fe20c27ada3dc2283 (patch)
treedb1e6c023b75b19bb8d761c3d8df576cd6b4d5cd /test/urltest.lua
parentd548a78e5516bcc85d44f1d419cf53c71d6dcd79 (diff)
parent56893e9dcd1eeebffb42b227a2151e18d49bc370 (diff)
downloadluasocket-00435529bb9a3a6614e9934fe20c27ada3dc2283.tar.gz
luasocket-00435529bb9a3a6614e9934fe20c27ada3dc2283.tar.bz2
luasocket-00435529bb9a3a6614e9934fe20c27ada3dc2283.zip
Merge pull request #32 from ideka/unstable
Use the length operator (#) instead of table.getn.
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 71e4428..32cb348 100644
--- a/test/urltest.lua
+++ b/test/urltest.lua
@@ -34,7 +34,7 @@ end
34 34
35local check_parse_path = function(path, expect) 35local check_parse_path = function(path, expect)
36 local parsed = socket.url.parse_path(path) 36 local parsed = socket.url.parse_path(path)
37 for i = 1, math.max(table.getn(parsed), table.getn(expect)) do 37 for i = 1, math.max(#parsed, #expect) do
38 if parsed[i] ~= expect[i] then 38 if parsed[i] ~= expect[i] then
39 print(path) 39 print(path)
40 os.exit() 40 os.exit()