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