diff options
-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) |