added simple test
This commit is contained in:
parent
ccea231479
commit
02d5dd3aa4
21
irc_test.go
Normal file
21
irc_test.go
Normal file
@ -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())
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user