mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
review fixes and updates
This commit is contained in:
parent
7122fb180c
commit
d3815fbe61
6 changed files with 140 additions and 75 deletions
|
|
@ -36,3 +36,17 @@ func TestParseDefaultChannelModes(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestUmodeGreaterThan(t *testing.T) {
|
||||
if !umodeGreaterThan(modes.Halfop, modes.Voice) {
|
||||
t.Errorf("expected Halfop > Voice")
|
||||
}
|
||||
|
||||
if !umodeGreaterThan(modes.Voice, modes.Mode(0)) {
|
||||
t.Errorf("expected Voice > 0 (the zero value of modes.Mode)")
|
||||
}
|
||||
|
||||
if umodeGreaterThan(modes.ChannelAdmin, modes.ChannelAdmin) {
|
||||
t.Errorf("modes should not be greater than themselves")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue