diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-05-25 01:54:13 +0000 |
| commit | 0f6c8d50a99997ac7829864b1c93362b50f1bbf3 (patch) | |
| tree | d0cefe3a05484e65b7b7e79d8cae4a1d2e6d19fb /test/ftptest.lua | |
| parent | c1ef3e7103cc652d2004ef1ddc9409b946207f33 (diff) | |
| download | luasocket-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.lua | 6 |
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 @@ | |||
| 1 | dofile("noglobals.lua") | ||
| 2 | |||
| 3 | local similar = function(s1, s2) | 1 | local 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 | ||
| 35 | local index, err, saved, back, expected | 33 | local index, err, saved, back, expected |
| 36 | 34 | ||
| 37 | local t = socket._time() | 35 | local t = socket.time() |
| 38 | 36 | ||
| 39 | index = readfile("test/index.html") | 37 | index = readfile("test/index.html") |
| 40 | 38 | ||
| @@ -112,4 +110,4 @@ back, err = socket.ftp.get("ftp://localhost/index.wrong.html;type=a") | |||
| 112 | check(err, err) | 110 | check(err, err) |
| 113 | 111 | ||
| 114 | print("passed all tests") | 112 | print("passed all tests") |
| 115 | print(string.format("done in %.2fs", socket._time() - t)) | 113 | print(string.format("done in %.2fs", socket.time() - t)) |
