mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-20 09:07:39 +00:00
Test suite: add more checks to whois-test.e
This commit is contained in:
@@ -19,6 +19,10 @@ expect {
|
|||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
"311 nick nick ~user localhost* \* :Real Name\r"
|
"311 nick nick ~user localhost* \* :Real Name\r"
|
||||||
}
|
}
|
||||||
|
expect {
|
||||||
|
timeout { exit 1 }
|
||||||
|
"318 nick nick :"
|
||||||
|
}
|
||||||
|
|
||||||
send "whois *\r"
|
send "whois *\r"
|
||||||
expect {
|
expect {
|
||||||
@@ -44,6 +48,16 @@ expect {
|
|||||||
"311 nick nick ~user localhost* \* :Real Name\r"
|
"311 nick nick ~user localhost* \* :Real Name\r"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
send "whois unknown\r"
|
||||||
|
expect {
|
||||||
|
timeout { exit 1 }
|
||||||
|
"401 nick unknown :"
|
||||||
|
}
|
||||||
|
expect {
|
||||||
|
timeout { exit 1 }
|
||||||
|
"318 nick unknown :"
|
||||||
|
}
|
||||||
|
|
||||||
send "quit\r"
|
send "quit\r"
|
||||||
expect {
|
expect {
|
||||||
timeout { exit 1 }
|
timeout { exit 1 }
|
||||||
|
Reference in New Issue
Block a user