Merge pull request #342 from legonian/patch-1

Change t.Fail to t.Fatal
This commit is contained in:
Mark McGranaghan 2020-10-19 08:01:29 -07:00 committed by GitHub
commit 1e3ec28f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ func TestIntMinBasic(t *testing.T) {
ans := IntMin(2, -2)
if ans != -2 {
// `t.Error*` will report test failures but continue
// executing the test. `t.Fail*` will report test
// executing the test. `t.Fatal*` will report test
// failures and stop the test immediately.
t.Errorf("IntMin(2, -2) = %d; want -2", ans)
}