Add a simple test.
parent
52dee8ab20
commit
1d8d793a61
|
@ -785,6 +785,18 @@ var variableOutputTestEvents = []struct {
|
|||
outRegex: *regexp.MustCompile("^bonjour [(]nsfw[)]: http://.*"),
|
||||
function: bonjour,
|
||||
},
|
||||
{
|
||||
in: irc.Message{
|
||||
Command: "PRIVMSG",
|
||||
Trailing: ":korwin",
|
||||
Params: []string{"#testchan-1"},
|
||||
Prefix: &irc.Prefix{
|
||||
Name: "idontexist",
|
||||
},
|
||||
},
|
||||
outRegex: *regexp.MustCompile("^."),
|
||||
function: korwin,
|
||||
},
|
||||
{
|
||||
in: irc.Message{
|
||||
Command: "PRIVMSG",
|
||||
|
|
Loading…
Reference in New Issue