1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-19 17:43:20 +02:00

Unit tests

- Added a unit test for the (single) `channelMessage(string, string)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-09 08:40:42 +02:00
parent fe91adde0a
commit 5155912bdd

View File

@ -509,7 +509,7 @@ public class Client : Thread
{
/* Append on a trailing `,` */
channelLine ~= ",";
for(ulong i = 1; i < channels.length; i++)
{
string currentChannel = channels[i];
@ -1196,12 +1196,17 @@ public class Client : Thread
/**
* Test sending a message to a channel
* Test sending a message to a single channel (singular)
*/
client.channelMessage("This is a test message sent to a channel", ["#birchwood"]);
client.channelMessage("This is a test message sent to a channel 1", ["#birchwood"]);
/**
* Test sending a message to multiple channels
* Test sending a message to a single channel (multi)
*/
client.channelMessage("This is a test message sent to a channel 2", "#birchwood");
/**
* Test sending a message to multiple channels (multi)
*/
client.channelMessage("This is a message sent to multiple channels one-shot", ["#birchwood", "#birchwood2"]);