From 02d5dd3aa4e423b2709d288aa5e943c08d31512a Mon Sep 17 00:00:00 2001 From: blackbeard420 Date: Wed, 22 Jan 2020 09:53:44 -0500 Subject: [PATCH] added simple test --- irc_test.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 irc_test.go diff --git a/irc_test.go b/irc_test.go new file mode 100644 index 0000000..3389563 --- /dev/null +++ b/irc_test.go @@ -0,0 +1,21 @@ +package irc + +import ( + "log" + "testing" + "time" +) + +func TestSimpleIrc(t *testing.T) { + con := NewConnection("thc420.xyz:6667", "irc-go", "irc-go", "", []string{"#freedom"}) + + go con.Run() + + time.Sleep(10 * time.Second) + + con.SendPrivmsg("#freedom", "\x0356 FUCK YALL BITCHES") +} + +func TestParser(t *testing.T) { + log.Printf("testing %s\n", t.Name()) +}