mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 20:38:22 +01:00
added wrong scheme test
This commit is contained in:
parent
6dd115015c
commit
36b07d5fd0
@ -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…
Reference in New Issue
Block a user