Improved error messages

This commit is contained in:
2023-07-10 11:36:17 +02:00
parent 6b735732b5
commit c4ee12d433
7 changed files with 46 additions and 43 deletions

12
Nil.go
View File

@ -11,11 +11,7 @@ func Nil(t testing.TB, a any) {
return
}
t.Errorf(`
file: %s
assert: Nil
value: %v
expected: nil`, file(t), a)
t.Errorf(formatOneParameter, file(), "Nil", a)
t.FailNow()
}
@ -25,11 +21,7 @@ func NotNil(t testing.TB, a any) {
return
}
t.Errorf(`
file: %s
assert: NotNil
value: %v
expected: not nil`, file(t), a)
t.Errorf(formatOneParameter, file(), "NotNil", a)
t.FailNow()
}