From 6096ae9239370f9fd3b54da6cbcaca3df69a376f Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Wed, 5 Jul 2023 13:37:11 +0200 Subject: [PATCH] Fixed incorrect logging --- Equal.go | 8 ++++---- Equal_test.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Equal.go b/Equal.go index e5816e9..80bcea0 100644 --- a/Equal.go +++ b/Equal.go @@ -10,8 +10,8 @@ func Equal[T comparable](t testing.TB, a T, b T) { if a == b { return } - - t.Errorf(`Equal: + + t.Errorf(` file: %s assert: Equal value: %v @@ -25,7 +25,7 @@ func NotEqual[T comparable](t testing.TB, a T, b T) { return } - t.Errorf(`NotEqual: + t.Errorf(` file: %s assert: NotEqual value: %v`, file(t), a) @@ -37,7 +37,7 @@ func DeepEqual[T comparable](t testing.TB, a T, b T) { if reflect.DeepEqual(a, b) { return } - + t.Errorf(` file: %s assert: DeepEqual diff --git a/Equal_test.go b/Equal_test.go index 5edbedc..8149c0c 100644 --- a/Equal_test.go +++ b/Equal_test.go @@ -21,7 +21,7 @@ func TestNotEqual(t *testing.T) { 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, "Hello", "Hello") assert.DeepEqual(t, T{A: 10}, T{A: 10})