refactor(testing): rename test functions for Templates to prevent redefinition
This commit is contained in:
parent
1bff879a0b
commit
94416676d2
@ -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<int32> 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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user