Skip to content

Commit

Permalink
Include nil check (quii#287)
Browse files Browse the repository at this point in the history
In the refactor we lose our nil check - should we not include this still?
  • Loading branch information
Tom Yeoman authored and quii committed Nov 3, 2019
1 parent 835c3dd commit d8b2c5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ t.Run("unknown word", func(t *testing.T) {
func assertError(t *testing.T, got, want error) {
t.Helper()

if got == nil {
t.Fatal("expected to get an error.")
}

if got != want {
t.Errorf("got error %q want %q", got, want)
}
Expand Down

0 comments on commit d8b2c5a

Please sign in to comment.