From a5203747643214d2b94a1ed8a44919285630fd0b Mon Sep 17 00:00:00 2001 From: firewave Date: Fri, 9 Aug 2024 14:13:34 +0200 Subject: [PATCH] fixture.cpp: fixed `knownConditionTrueFalse` selfcheck warning --- test/fixture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fixture.cpp b/test/fixture.cpp index c81ac656ccc..032056c9635 100644 --- a/test/fixture.cpp +++ b/test/fixture.cpp @@ -239,7 +239,7 @@ bool TestFixture::assertEquals(const char * const filename, const unsigned int l if (expected != actual) { return assertEquals(filename, linenr, std::to_string(expected), std::to_string(actual), msg); } - return expected == actual; + return true; } bool TestFixture::assertEqualsDouble(const char * const filename, const unsigned int linenr, const double expected, const double actual, const double tolerance, const std::string &msg) const