From 94416676d2b03c2b6a7ab304c5fc7675bee9ab33 Mon Sep 17 00:00:00 2001 From: _Redstone_c_ Date: Thu, 17 Mar 2022 10:19:41 +0800 Subject: [PATCH] refactor(testing): rename test functions for Templates to prevent redefinition --- .../Source/Private/Testing/TemplatesTesting.cpp | 6 +++--- Redcraft.Utility/Source/Public/Testing/TemplatesTesting.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Redcraft.Utility/Source/Private/Testing/TemplatesTesting.cpp b/Redcraft.Utility/Source/Private/Testing/TemplatesTesting.cpp index c9ada7d..0c142a0 100644 --- a/Redcraft.Utility/Source/Private/Testing/TemplatesTesting.cpp +++ b/Redcraft.Utility/Source/Private/Testing/TemplatesTesting.cpp @@ -17,7 +17,7 @@ void TestTemplates() TestReferenceWrapper(); TestOptional(); TestVariant(); - TestOther(); + TestMiscTemplates(); } NAMESPACE_UNNAMED_BEGIN @@ -340,12 +340,12 @@ int32 TestFunctionB(T** Ptr) NAMESPACE_UNNAMED_END -void TestOther() +void TestMiscTemplates() { TTestStructA ObjectA(new int32(3)); always_check(TestFunctionB(&ObjectA) == 1); always_check(TestFunctionB(AddressOf(ObjectA)) == 0); - always_check(AddressOf(TestOther) == &TestOther); + always_check(AddressOf(TestMiscTemplates) == &TestMiscTemplates); } NAMESPACE_MODULE_END(Utility) diff --git a/Redcraft.Utility/Source/Public/Testing/TemplatesTesting.h b/Redcraft.Utility/Source/Public/Testing/TemplatesTesting.h index c6b792d..bcdd1ec 100644 --- a/Redcraft.Utility/Source/Public/Testing/TemplatesTesting.h +++ b/Redcraft.Utility/Source/Public/Testing/TemplatesTesting.h @@ -11,7 +11,7 @@ REDCRAFTUTILITY_API void TestInvoke(); REDCRAFTUTILITY_API void TestReferenceWrapper(); REDCRAFTUTILITY_API void TestOptional(); REDCRAFTUTILITY_API void TestVariant(); -REDCRAFTUTILITY_API void TestOther(); +REDCRAFTUTILITY_API void TestMiscTemplates(); NAMESPACE_MODULE_END(Utility) NAMESPACE_MODULE_END(Redcraft)