From 71719ea0f3204160ecc8c089a560279496a394e5 Mon Sep 17 00:00:00 2001 From: legonian Date: Sun, 18 Oct 2020 14:34:13 +0300 Subject: [PATCH] Change t.Fail to t.Fatal Fail* continues execution, right function probably Fatal*. --- examples/testing/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/testing/main_test.go b/examples/testing/main_test.go index c91540f..e409d9d 100644 --- a/examples/testing/main_test.go +++ b/examples/testing/main_test.go @@ -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) }