3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-26 05:49:25 +01:00

Merge pull request #904 from hhirtz/fix-key-tests

irc/modes: remove duplicate test case
This commit is contained in:
Shivaram Lingamneni 2020-03-24 07:17:24 -07:00 committed by GitHub
commit a56ca3240f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,13 +39,6 @@ func TestIssue874(t *testing.T) {
ModeChange{Op: List, Mode: BanMask, Arg: ""}, ModeChange{Op: List, Mode: BanMask, Arg: ""},
}, t) }, t)
modes, unknown = ParseChannelModeChanges("+kb", "beer")
assertEqual(unknown, emptyUnknown, t)
assertEqual(modes, ModeChanges{
ModeChange{Op: Add, Mode: Key, Arg: "beer"},
ModeChange{Op: List, Mode: BanMask, Arg: ""},
}, t)
modes, unknown = ParseChannelModeChanges("-kb", "beer") modes, unknown = ParseChannelModeChanges("-kb", "beer")
assertEqual(unknown, emptyUnknown, t) assertEqual(unknown, emptyUnknown, t)
assertEqual(modes, ModeChanges{ assertEqual(modes, ModeChanges{