X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftestsuite%2Fchannel-test.e;h=16c67ad4a007eeeada1a6f08fedcc9571b2d069a;hb=9e48f3f8f8c312ee20caef70cfb377a0d89260bb;hp=19bed8692d9b2af9292ec6cd1037042aae52358d;hpb=4d46eac73381ed13569e897c010bc748fad9fec4;p=ngircd-alex.git diff --git a/src/testsuite/channel-test.e b/src/testsuite/channel-test.e index 19bed869..16c67ad4 100644 --- a/src/testsuite/channel-test.e +++ b/src/testsuite/channel-test.e @@ -1,4 +1,4 @@ -# $Id: channel-test.e,v 1.2 2002/09/09 21:26:00 alex Exp $ +# $Id: channel-test.e,v 1.4 2008/02/05 13:31:51 fw Exp $ spawn telnet localhost 6789 expect { @@ -16,7 +16,7 @@ expect { send "join #channel\r" expect { timeout { exit 1 } - ":nick!~user@* JOIN :#channel" + "@* JOIN :#channel" } expect { timeout { exit 1 } @@ -26,13 +26,17 @@ expect { send "topic #channel :Test-Topic\r" expect { timeout { exit 1 } - ":nick!~user@* TOPIC #channel :Test-Topic" + "@* TOPIC #channel :Test-Topic" } send "who #channel\r" expect { timeout { exit 1 } - "352 nick #channel ~user * nick H@ :0 User" + "352 nick #channel" +} +expect { + timeout { exit 1 } + "* nick H@ :0 User" } expect { timeout { exit 1 } @@ -62,7 +66,37 @@ expect { send "part #channel\r" expect { timeout { exit 1 } - ":nick!~user@* PART #channel :nick" + "@* PART #channel :nick" +} + +send "join #channel\r" +expect { + timeout { exit 1 } + "@* JOIN :#channel" +} +expect { + timeout { exit 1 } + "366" +} + +send "join #channel2\r" +expect { + timeout { exit 1 } + "@* JOIN :#channel2" +} +expect { + timeout { exit 1 } + "366" +} + +send "join 0\r" +expect { + timeout { exit 1 } + "@* PART #channel2 :nick" +} +expect { + timeout { exit 1 } + "@* PART #channel :nick" } send "quit\r"