mirror of
https://github.com/jeremyd/ergo.git
synced 2026-04-30 09:29:59 -07:00
add +u and +U to CHANMODES token
This commit is contained in:
@@ -5,6 +5,7 @@ package modes
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -219,6 +220,15 @@ func TestHighestChannelUserMode(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestChanmodesToken(t *testing.T) {
|
||||
tok := ChanmodesToken()
|
||||
for _, mode := range SupportedChannelModes {
|
||||
if strings.IndexRune(tok, rune(mode)) == -1 {
|
||||
t.Errorf("+%s not included in ChanmodesToken()", mode)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestModeChangesString(t *testing.T) {
|
||||
m := ModeChanges{
|
||||
ModeChange{Op: Add, Mode: RegisteredOnly},
|
||||
|
||||
Reference in New Issue
Block a user