mark helper as such

This commit is contained in:
Gabriel Augendre 2023-03-15 17:13:24 +01:00
parent 0221dafe57
commit 7e4c8cece9

View file

@ -39,7 +39,8 @@ func TestCheckGuess(t *testing.T) {
}) })
} }
func assertCheckGuess(t *testing.T, guess, random int, wantStatus string, wantWon bool) { func assertCheckGuess(t testing.TB, guess, random int, wantStatus string, wantWon bool) {
t.Helper()
status, won := CheckGuess(guess, random) status, won := CheckGuess(guess, random)
if status != wantStatus { if status != wantStatus {
t.Errorf("got %q want %q", status, wantStatus) t.Errorf("got %q want %q", status, wantStatus)