package main import ( "fmt" "testing" ) var strs []string = []string{":irc.example.com CAP LS * :multi-prefix extended-join sasl", "@id=234AB :nihilazo!nihilazo@localhost PRIVMSG #thebutton :This is content", ":dan!d@localhost PRIVMSG #chan :Hey what's up!", "CAP REQ :sasl", } // TestParseMessage parses some messages and prints the results. // TODO make these into cases func TestParseMessage(t *testing.T) { for _, s := range strs { fmt.Printf("#%v", parseMessage(s)) } }