From be10d7e2171cf0a81a6c0f9a3f066cf6f74e15f5 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 d4db096c275f..ef5fbbd1df74 100644 --- a/test/fixture.cpp +++ b/test/fixture.cpp @@ -237,7 +237,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