diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-09-26 20:29:01 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-09-26 20:29:01 +0000 |
| commit | 36b07d5fd0fe611653004d6fc8ffbc383a2a04de (patch) | |
| tree | 8896272e3afd3ae5d9ac12b0fb617635e4b6359a /test | |
| parent | 6dd115015c6f2514a2f180aaf474a66364939c31 (diff) | |
| download | luasocket-36b07d5fd0fe611653004d6fc8ffbc383a2a04de.tar.gz luasocket-36b07d5fd0fe611653004d6fc8ffbc383a2a04de.tar.bz2 luasocket-36b07d5fd0fe611653004d6fc8ffbc383a2a04de.zip | |
added wrong scheme test
Diffstat (limited to 'test')
| -rw-r--r-- | test/ftptest.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ftptest.lua b/test/ftptest.lua index 7b0d3ab..7fc1917 100644 --- a/test/ftptest.lua +++ b/test/ftptest.lua | |||
| @@ -90,6 +90,10 @@ back, err = FTP.get { | |||
| 90 | } | 90 | } |
| 91 | check(not err and back == index, err) | 91 | check(not err and back == index, err) |
| 92 | 92 | ||
| 93 | write("testing wrong scheme: ") | ||
| 94 | back, err = FTP.get("wrong://banana.com/lixo") | ||
| 95 | check(not back and err == "unknown scheme 'wrong'", err) | ||
| 96 | |||
| 93 | write("testing invalid url: ") | 97 | write("testing invalid url: ") |
| 94 | back, err = FTP.get("localhost/dir1/index.html;type=i") | 98 | back, err = FTP.get("localhost/dir1/index.html;type=i") |
| 95 | local c, e = connect("", 21) | 99 | local c, e = connect("", 21) |
