fix(Testing): flip equal signs in output message in AssertTrue

This commit is contained in:
Levente Nas
2024-10-18 20:15:46 +02:00
parent 65e14cc4db
commit d32169e645

View File

@@ -23,10 +23,10 @@ func AssertNotEqual[T comparable](t *testing.T, expected T, actual T) {
func AssertTrue(t *testing.T, expected bool) { func AssertTrue(t *testing.T, expected bool) {
t.Helper() t.Helper()
if expected { if expected {
t.Logf("✅ [%T](%+v) != [%T](%+v)", expected, expected, true, true) t.Logf("✅ [%T](%+v) == [%T](%+v)", expected, expected, true, true)
return 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) { func AssertFalse(t *testing.T, expected bool) {