Improved error messages
This commit is contained in:
parent
2b28627e58
commit
7ab2ff6627
7 changed files with 46 additions and 43 deletions
12
Contains.go
12
Contains.go
|
@ -12,11 +12,7 @@ func Contains(t testing.TB, a any, b any) {
|
|||
return
|
||||
}
|
||||
|
||||
t.Errorf(`
|
||||
file: %s
|
||||
assert: Contains
|
||||
container:%v
|
||||
element: %v`, file(t), a, b)
|
||||
t.Errorf(formatTwoParameters, file(), "Contains", a, b)
|
||||
t.FailNow()
|
||||
}
|
||||
|
||||
|
@ -26,11 +22,7 @@ func NotContains(t testing.TB, a any, b any) {
|
|||
return
|
||||
}
|
||||
|
||||
t.Errorf(`
|
||||
file: %s
|
||||
assert: NotContains
|
||||
container:%v
|
||||
element: %v`, file(t), a, b)
|
||||
t.Errorf(formatTwoParameters, file(), "NotContains", a, b)
|
||||
t.FailNow()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue