added wrong scheme test

master
Diego Nehab 2001-09-26 20:29:01 +00:00
parent 6dd115015c
commit 36b07d5fd0
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ back, err = FTP.get {
}
check(not err and back == index, err)
write("testing wrong scheme: ")
back, err = FTP.get("wrong://banana.com/lixo")
check(not back and err == "unknown scheme 'wrong'", err)
write("testing invalid url: ")
back, err = FTP.get("localhost/dir1/index.html;type=i")
local c, e = connect("", 21)