Skip to content

Commit

Permalink
Common/Tests: small fixes in FunctionTrait and VoidType tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kachsheev committed Dec 14, 2024
1 parent 59e777a commit f24ae30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Common/Tests/FunctionalTraitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ int FunctionalTraitTest::typeMapper()
// using T3Result = TypeMapper<T3, TestTypeMatchingTrait>::Type; // static assert
using T3Result = TypeMapper<T3, TestTypeMatchingTrait, false>::Type;

const bool t1ComparationResult = ComparingTypes<T1, T1Result>::VALUE;
const bool t2ComparationResult = ComparingTypes<T2, T2Result>::VALUE;
const bool t3ComparationResult = ComparingTypes<Empty, T3Result>::VALUE;
bool t1ComparationResult = ComparingTypes<T1, T1Result>::VALUE;
bool t2ComparationResult = ComparingTypes<T2, T2Result>::VALUE;
bool t3ComparationResult = ComparingTypes<Empty, T3Result>::VALUE;

IN_CASE_CHECK(t1ComparationResult == true);
IN_CASE_CHECK(t2ComparationResult == true);
Expand Down
10 changes: 8 additions & 2 deletions src/Common/Tests/VoidTypeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,14 @@ VoidTypeTest::~VoidTypeTest() = default;

int VoidTypeTest::vStart()
{
IN_CASE_CHECK(HasMemember<ExistMember>::VALUE == TrueType::VALUE);
IN_CASE_CHECK_END(HasMemember<NotExistMember>::VALUE == FalseType::VALUE);
bool isExistMemberStructContainMember = (
HasMemember<ExistMember>::VALUE == true
);
bool isNotExistMemberStructContainMember = (
HasMemember<NotExistMember>::VALUE == false
);
IN_CASE_CHECK(isExistMemberStructContainMember);
IN_CASE_CHECK_END(isNotExistMemberStructContainMember);
}

}}} // flame_ide::common::tests

0 comments on commit f24ae30

Please sign in to comment.