Skip to content

Commit

Permalink
refactor: using assertError function on TestDelete of maps section (#730
Browse files Browse the repository at this point in the history
)
  • Loading branch information
guivictorr authored Jun 21, 2024
1 parent 19cbdb1 commit 95f589d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,7 @@ func TestDelete(t *testing.T) {
dictionary.Delete(word)

_, err := dictionary.Search(word)
if err != ErrNotFound {
t.Errorf("Expected %q to be deleted", word)
}
assertError(t, word, ErrNotFound)
}
```

Expand Down

0 comments on commit 95f589d

Please sign in to comment.