From d854bac78e241027a55fb0e0f3ca7a87d70520bd Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Sat, 3 Feb 2018 20:28:02 +1000 Subject: [PATCH] Fix broken modes tests --- irc/modes_test.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/irc/modes_test.go b/irc/modes_test.go index 930e9a56..c4a042b9 100644 --- a/irc/modes_test.go +++ b/irc/modes_test.go @@ -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