From f24ae3055cf24c6470e42aad97c1ebe5ff17d081 Mon Sep 17 00:00:00 2001 From: Anton Kashcheev Date: Sun, 15 Dec 2024 03:54:25 +0500 Subject: [PATCH] Common/Tests: small fixes in FunctionTrait and VoidType tests --- src/Common/Tests/FunctionalTraitTest.cpp | 6 +++--- src/Common/Tests/VoidTypeTest.cpp | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Common/Tests/FunctionalTraitTest.cpp b/src/Common/Tests/FunctionalTraitTest.cpp index be99376..ea7934e 100644 --- a/src/Common/Tests/FunctionalTraitTest.cpp +++ b/src/Common/Tests/FunctionalTraitTest.cpp @@ -33,9 +33,9 @@ int FunctionalTraitTest::typeMapper() // using T3Result = TypeMapper::Type; // static assert using T3Result = TypeMapper::Type; - const bool t1ComparationResult = ComparingTypes::VALUE; - const bool t2ComparationResult = ComparingTypes::VALUE; - const bool t3ComparationResult = ComparingTypes::VALUE; + bool t1ComparationResult = ComparingTypes::VALUE; + bool t2ComparationResult = ComparingTypes::VALUE; + bool t3ComparationResult = ComparingTypes::VALUE; IN_CASE_CHECK(t1ComparationResult == true); IN_CASE_CHECK(t2ComparationResult == true); diff --git a/src/Common/Tests/VoidTypeTest.cpp b/src/Common/Tests/VoidTypeTest.cpp index 8a5ccfc..7310d72 100644 --- a/src/Common/Tests/VoidTypeTest.cpp +++ b/src/Common/Tests/VoidTypeTest.cpp @@ -28,8 +28,14 @@ VoidTypeTest::~VoidTypeTest() = default; int VoidTypeTest::vStart() { - IN_CASE_CHECK(HasMemember::VALUE == TrueType::VALUE); - IN_CASE_CHECK_END(HasMemember::VALUE == FalseType::VALUE); + bool isExistMemberStructContainMember = ( + HasMemember::VALUE == true + ); + bool isNotExistMemberStructContainMember = ( + HasMemember::VALUE == false + ); + IN_CASE_CHECK(isExistMemberStructContainMember); + IN_CASE_CHECK_END(isNotExistMemberStructContainMember); } }}} // flame_ide::common::tests