Skip to content

Commit 37c27d9

Browse files
committed
test: extend tests with new categories
1 parent c5aa186 commit 37c27d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/validation/highscore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const (
4545
)
4646

4747
func (hc HighscoreCategory) String() (string, error) {
48-
seasons := [...]string{"achievements", "axefighting", "charmpoints", "clubfighting", "distancefighting", "experience", "fishing", "fistfighting", "goshnarstaint", "loyaltypoints", "magiclevel", "shielding", "swordfighting", "dromescore", "bosspoints"}
49-
if hc < HighScoreAchievements || hc > HighScoreBosspoints {
48+
seasons := [...]string{"achievements", "axefighting", "charmpoints", "clubfighting", "distancefighting", "experience", "fishing", "fistfighting", "goshnarstaint", "loyaltypoints", "magiclevel", "shielding", "swordfighting", "dromescore", "bosspoints", "bountypoints", "weeklytasks"}
49+
if hc < HighScoreAchievements || hc > HighScoreWeeklytasks {
5050
return "", errors.New("invalid HighscoreCategory value")
5151
}
5252
return seasons[hc-1], nil

0 commit comments

Comments
 (0)