commit
1e3ec28f70
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user