test for plugins
This commit is contained in:
parent
97956445da
commit
bf3e56ed99
18
plugins/plugins_test.go
Normal file
18
plugins/plugins_test.go
Normal file
@ -0,0 +1,18 @@
|
||||
package plugins
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPluginsToMe(t *testing.T) {
|
||||
if ToMe("a", "a") == false {
|
||||
t.Error("ToMe expected true; got false\n")
|
||||
}
|
||||
}
|
||||
|
||||
func TestPluginsNameRE(t *testing.T) {
|
||||
n := NameRE.ReplaceAllString("@test:test.com", "$1")
|
||||
if n != "test" {
|
||||
t.Errorf("NameRE expected 'test'; got %q\n", n)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user