|
@@ -167,7 +167,7 @@ func TestGame_FilterWords(t *testing.T) {
|
|
|
if len(g.Words) != len(tt.want) {
|
|
|
t.Errorf("Expected %d Words, got %d", len(tt.want), len(g.Words))
|
|
|
}
|
|
|
- for word, _ := range tt.want {
|
|
|
+ for word := range tt.want {
|
|
|
if _, ok := g.Words[word]; !ok {
|
|
|
t.Errorf("Word %s was removed, expected it to remain", word)
|
|
|
}
|