aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ftptest.lua4
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}
91check(not err and back == index, err) 91check(not err and back == index, err)
92 92
93write("testing wrong scheme: ")
94back, err = FTP.get("wrong://banana.com/lixo")
95check(not back and err == "unknown scheme 'wrong'", err)
96
93write("testing invalid url: ") 97write("testing invalid url: ")
94back, err = FTP.get("localhost/dir1/index.html;type=i") 98back, err = FTP.get("localhost/dir1/index.html;type=i")
95local c, e = connect("", 21) 99local c, e = connect("", 21)