mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-22 03:49:27 +01:00
Fix broken modes tests
This commit is contained in:
parent
3634d0601e
commit
d854bac78e
@ -6,6 +6,8 @@ package irc
|
|||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/oragono/oragono/irc/modes"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestParseDefaultChannelModes(t *testing.T) {
|
func TestParseDefaultChannelModes(t *testing.T) {
|
||||||
@ -16,13 +18,13 @@ func TestParseDefaultChannelModes(t *testing.T) {
|
|||||||
|
|
||||||
var parseTests = []struct {
|
var parseTests = []struct {
|
||||||
raw *string
|
raw *string
|
||||||
expected Modes
|
expected modes.Modes
|
||||||
}{
|
}{
|
||||||
{&nt, Modes{NoOutside, OpOnlyTopic}},
|
{&nt, modes.Modes{modes.NoOutside, modes.OpOnlyTopic}},
|
||||||
{&n, Modes{NoOutside}},
|
{&n, modes.Modes{modes.NoOutside}},
|
||||||
{&empty, Modes{}},
|
{&empty, modes.Modes{}},
|
||||||
{&tminusi, Modes{OpOnlyTopic}},
|
{&tminusi, modes.Modes{modes.OpOnlyTopic}},
|
||||||
{nil, Modes{NoOutside, OpOnlyTopic}},
|
{nil, modes.Modes{modes.NoOutside, modes.OpOnlyTopic}},
|
||||||
}
|
}
|
||||||
|
|
||||||
var config Config
|
var config Config
|
||||||
|
Loading…
Reference in New Issue
Block a user