add +u and +U to CHANMODES token

This commit is contained in:
Shivaram Lingamneni
2020-10-20 21:24:47 -04:00
parent f019f62167
commit a30e369225
5 changed files with 45 additions and 1 deletions

View File

@@ -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},