Module: ngircd.git Branch: master Commit: b1a5ade88f304d7e7c5a2c41511061141842dadd URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=b1a5a...
Author: Alexander Barton alex@barton.de Date: Mon Oct 15 21:39:08 2012 +0200
Test suite: add more checks to whois-test.e
---
src/testsuite/whois-test.e | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/src/testsuite/whois-test.e b/src/testsuite/whois-test.e index 2aed694..3c393e8 100644 --- a/src/testsuite/whois-test.e +++ b/src/testsuite/whois-test.e @@ -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 }