aboutsummaryrefslogtreecommitdiff
path: root/test/ftptest.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-05-25 01:54:13 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-05-25 01:54:13 +0000
commit0f6c8d50a99997ac7829864b1c93362b50f1bbf3 (patch)
treed0cefe3a05484e65b7b7e79d8cae4a1d2e6d19fb /test/ftptest.lua
parentc1ef3e7103cc652d2004ef1ddc9409b946207f33 (diff)
downloadluasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.gz
luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.tar.bz2
luasocket-0f6c8d50a99997ac7829864b1c93362b50f1bbf3.zip
Porting to LUA 5.0 final
Diffstat (limited to 'test/ftptest.lua')
-rw-r--r--test/ftptest.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ftptest.lua b/test/ftptest.lua
index ee3af91..6ba61a4 100644
--- a/test/ftptest.lua
+++ b/test/ftptest.lua
@@ -1,5 +1,3 @@
1dofile("noglobals.lua")
2
3local similar = function(s1, s2) 1local similar = function(s1, s2)
4 return 2 return
5 string.lower(string.gsub(s1, "%s", "")) == 3 string.lower(string.gsub(s1, "%s", "")) ==
@@ -34,7 +32,7 @@ end
34 32
35local index, err, saved, back, expected 33local index, err, saved, back, expected
36 34
37local t = socket._time() 35local t = socket.time()
38 36
39index = readfile("test/index.html") 37index = readfile("test/index.html")
40 38
@@ -112,4 +110,4 @@ back, err = socket.ftp.get("ftp://localhost/index.wrong.html;type=a")
112check(err, err) 110check(err, err)
113 111
114print("passed all tests") 112print("passed all tests")
115print(string.format("done in %.2fs", socket._time() - t)) 113print(string.format("done in %.2fs", socket.time() - t))