Fixed incorrect logging

This commit is contained in:
Eduard Urbach 2023-07-05 13:37:11 +02:00
parent 13850a3acd
commit 6096ae9239
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ func Equal[T comparable](t testing.TB, a T, b T) {
return return
} }
t.Errorf(`Equal: t.Errorf(`
file: %s file: %s
assert: Equal assert: Equal
value: %v value: %v
@ -25,7 +25,7 @@ func NotEqual[T comparable](t testing.TB, a T, b T) {
return return
} }
t.Errorf(`NotEqual: t.Errorf(`
file: %s file: %s
assert: NotEqual assert: NotEqual
value: %v`, file(t), a) value: %v`, file(t), a)

View File

@ -21,7 +21,7 @@ func TestNotEqual(t *testing.T) {
assert.NotEqual(t, T{A: 10}, T{A: 20}) assert.NotEqual(t, T{A: 10}, T{A: 20})
} }
func TestDeepEqual(t *testing.T) { func TestDeepEqual(t *testing.T) {
assert.DeepEqual(t, 0, 0) assert.DeepEqual(t, 0, 0)
assert.DeepEqual(t, "Hello", "Hello") assert.DeepEqual(t, "Hello", "Hello")
assert.DeepEqual(t, T{A: 10}, T{A: 10}) assert.DeepEqual(t, T{A: 10}, T{A: 10})