3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

Fix broken modes tests

This commit is contained in:
Daniel Oaks 2018-02-03 20:28:02 +10:00
parent 3634d0601e
commit d854bac78e

View File

@ -6,6 +6,8 @@ package irc
import (
"reflect"
"testing"
"github.com/oragono/oragono/irc/modes"
)
func TestParseDefaultChannelModes(t *testing.T) {
@ -16,13 +18,13 @@ func TestParseDefaultChannelModes(t *testing.T) {
var parseTests = []struct {
raw *string
expected Modes
expected modes.Modes
}{
{&nt, Modes{NoOutside, OpOnlyTopic}},
{&n, Modes{NoOutside}},
{&empty, Modes{}},
{&tminusi, Modes{OpOnlyTopic}},
{nil, Modes{NoOutside, OpOnlyTopic}},
{&nt, modes.Modes{modes.NoOutside, modes.OpOnlyTopic}},
{&n, modes.Modes{modes.NoOutside}},
{&empty, modes.Modes{}},
{&tminusi, modes.Modes{modes.OpOnlyTopic}},
{nil, modes.Modes{modes.NoOutside, modes.OpOnlyTopic}},
}
var config Config