From d32169e645a025ccbfd38c4c379d1aceca608a8e Mon Sep 17 00:00:00 2001 From: Levente Nas Date: Fri, 18 Oct 2024 20:15:46 +0200 Subject: [PATCH] fix(Testing): flip equal signs in output message in AssertTrue --- testing/testing.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/testing.go b/testing/testing.go index 3eecec4..34d7f0e 100644 --- a/testing/testing.go +++ b/testing/testing.go @@ -23,10 +23,10 @@ func AssertNotEqual[T comparable](t *testing.T, expected T, actual T) { func AssertTrue(t *testing.T, expected bool) { t.Helper() if expected { - t.Logf("✅ [%T](%+v) != [%T](%+v)", expected, expected, true, true) + t.Logf("✅ [%T](%+v) == [%T](%+v)", expected, expected, true, true) return } - t.Errorf("❌ [%T](%+v) == [%T](%+v)", expected, expected, true, true) + t.Errorf("❌ [%T](%+v) != [%T](%+v)", expected, expected, true, true) } func AssertFalse(t *testing.T, expected bool) {