|
@@ -541,3 +541,14 @@ func TestConnectSignal(t *testing.T) {
|
|
|
t.Error("AtExit wasn't called.")
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+func TestMatch(t *testing.T) {
|
|
|
+ var testdata map[string]string = map[string]string{"TEST": "test",
|
|
|
+ "TEst": "teST", "[bugz]": "{BUGZ}"}
|
|
|
+
|
|
|
+ for nick1, nick2 := range testdata {
|
|
|
+ if !Match(nick1, nick2) {
|
|
|
+ t.Errorf("Match %s [%s] != %s [%s] Failed match!", nick1, NameLower(nick1), nick2, NameLower(nick2))
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|