diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 01:02:07 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-06-16 01:02:07 +0000 |
commit | d46f7a09a768b146f2f3cdc9a6a50357832bd1c7 (patch) | |
tree | d4f7ca1e677d06446245691d5ece6dab51915f16 /test/stufftest.lua | |
parent | 843a431ef98fd541d98fd3898463985d9bfcde28 (diff) | |
download | luasocket-d46f7a09a768b146f2f3cdc9a6a50357832bd1c7.tar.gz luasocket-d46f7a09a768b146f2f3cdc9a6a50357832bd1c7.tar.bz2 luasocket-d46f7a09a768b146f2f3cdc9a6a50357832bd1c7.zip |
Fixed smtp.lua loading.
Adjusted tftp module.
Added some comments.
Diffstat (limited to 'test/stufftest.lua')
-rw-r--r-- | test/stufftest.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/stufftest.lua b/test/stufftest.lua index 5eb8005..6bd1f91 100644 --- a/test/stufftest.lua +++ b/test/stufftest.lua | |||
@@ -1,11 +1,13 @@ | |||
1 | smtp = require("smtp") | ||
2 | |||
1 | function test_dot(original, right) | 3 | function test_dot(original, right) |
2 | local result, n = socket.smtp.dot(2, original) | 4 | local result, n = smtp.dot(2, original) |
3 | assert(result == right, "->" .. result .. "<-") | 5 | assert(result == right, "->" .. result .. "<-") |
4 | print("ok") | 6 | print("ok") |
5 | end | 7 | end |
6 | 8 | ||
7 | function test_stuff(original, right) | 9 | function test_stuff(original, right) |
8 | local result, n = socket.smtp.dot(2, original) | 10 | local result, n = smtp.dot(2, original) |
9 | assert(result == right, "->" .. result .. "<-") | 11 | assert(result == right, "->" .. result .. "<-") |
10 | print("ok") | 12 | print("ok") |
11 | end | 13 | end |