]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Test suite: add more checks to whois-test.e
authorAlexander Barton <alex@barton.de>
Mon, 15 Oct 2012 19:39:08 +0000 (21:39 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 15 Oct 2012 19:39:08 +0000 (21:39 +0200)
src/testsuite/whois-test.e

index 2aed6944f2ebd60dcfa1bc9ecdcb1535113603b6..3c393e8db4e14dddce4ce8dc23ff4da784864874 100644 (file)
@@ -19,6 +19,10 @@ expect {
        timeout { exit 1 }
        "311 nick nick ~user localhost* \* :Real Name\r"
 }
+expect {
+       timeout { exit 1 }
+       "318 nick nick :"
+}
 
 send "whois *\r"
 expect {
@@ -44,6 +48,16 @@ expect {
        "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"
 expect {
        timeout { exit 1 }