mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 06:03:29 +02:00
Unit tests
- Don't use `command()` directly for joining channels but rather `joinChannel(string)` - Added a test for multiple channel sending
This commit is contained in:
parent
1cd9b6b640
commit
8a9f48a3c7
@ -1188,7 +1188,10 @@ public class Client : Thread
|
||||
client.command(new Message("", "USER", "doggie doggie irc.frdeenode.net :Tristan B. Kildaire"));
|
||||
|
||||
Thread.sleep(dur!("seconds")(4));
|
||||
client.command(new Message("", "JOIN", "#birchwood"));
|
||||
// client.command(new Message("", "JOIN", "#birchwood"));
|
||||
client.joinChannel("#birchwood");
|
||||
// TODO: Add a joinChannels(string[])
|
||||
client.joinChannel("#birchwood2");
|
||||
|
||||
Thread.sleep(dur!("seconds")(2));
|
||||
client.command(new Message("", "NAMES", ""));
|
||||
@ -1205,6 +1208,11 @@ public class Client : Thread
|
||||
*/
|
||||
client.channelMessage("This is a test message sent to a channel", ["#birchwood"]);
|
||||
|
||||
/**
|
||||
* Test sending a message to multiple channels
|
||||
*/
|
||||
client.channelMessage("This is a message sent to multiple channels one-shot", ["#birchwood", "#birchwood2"]);
|
||||
|
||||
/* TODO: Add a check here to make sure the above worked I guess? */
|
||||
/* TODO: Make this end */
|
||||
// while(true)
|
||||
|
Loading…
Reference in New Issue
Block a user