added wrong scheme test
This commit is contained in:
parent
6dd115015c
commit
36b07d5fd0
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ back, err = FTP.get {
|
||||||
}
|
}
|
||||||
check(not err and back == index, err)
|
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: ")
|
write("testing invalid url: ")
|
||||||
back, err = FTP.get("localhost/dir1/index.html;type=i")
|
back, err = FTP.get("localhost/dir1/index.html;type=i")
|
||||||
local c, e = connect("", 21)
|
local c, e = connect("", 21)
|
||||||
|
|
Loading…
Add table
Reference in a new issue