-spawn telnet localhost 6789
+# ngIRCd test suite
+# WHO test
+
+spawn telnet 127.0.0.1 6789
expect {
timeout { exit 1 }
"Connected"
":ngircd.test.server 352 nick #channel * * ngircd.test.server nick G@ :0 Real Name"
}
-send "who localhos*\r"
+send "who 127.0.0.*\r"
expect {
timeout { exit 1 }
":ngircd.test.server 352 nick \* * * ngircd.test.server nick G :0 Real Name"
send "part #channel\r"
expect {
timeout { exit 1 }
- "@* PART #channel :nick"
+ "@* PART #channel :"
}
send "who Real?Name\r"
"305 nick"
}
-send "who ??cal*ho*\r"
+send "who ??7.*0*\r"
expect {
timeout { exit 1 }
":ngircd.test.server 352 nick \* * * ngircd.test.server nick H* :0 Real Name"
send "quit\r"
expect {
timeout { exit 1 }
- "Connection closed"
+ "ERROR :Closing connection"
}
-
-# -eof-