refactor(testing): put all test functions under the Testing namespace
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include "Testing/ConceptsTesting.h"
|
||||
|
||||
#include "Miscellaneous/AssertionMacros.h"
|
||||
#include "Templates/Templates.h"
|
||||
#include "Concepts/Concepts.h"
|
||||
@ -7,6 +8,8 @@ NAMESPACE_REDCRAFT_BEGIN
|
||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||
NAMESPACE_MODULE_BEGIN(Utility)
|
||||
|
||||
NAMESPACE_BEGIN(Testing)
|
||||
|
||||
// Warning: The test here is not a complete test, it is only used to determine whether the environment supports the concepts
|
||||
|
||||
NAMESPACE_UNNAMED_BEGIN
|
||||
@ -195,6 +198,8 @@ void TestConcepts()
|
||||
|
||||
}
|
||||
|
||||
NAMESPACE_END(Testing)
|
||||
|
||||
NAMESPACE_MODULE_END(Utility)
|
||||
NAMESPACE_MODULE_END(Redcraft)
|
||||
NAMESPACE_REDCRAFT_END
|
||||
|
@ -8,6 +8,8 @@ NAMESPACE_REDCRAFT_BEGIN
|
||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||
NAMESPACE_MODULE_BEGIN(Utility)
|
||||
|
||||
NAMESPACE_BEGIN(Testing)
|
||||
|
||||
void TestMemory()
|
||||
{
|
||||
TestAlignment();
|
||||
@ -137,6 +139,8 @@ void TestMemoryMalloc()
|
||||
|
||||
}
|
||||
|
||||
NAMESPACE_END(Testing)
|
||||
|
||||
NAMESPACE_MODULE_END(Utility)
|
||||
NAMESPACE_MODULE_END(Redcraft)
|
||||
NAMESPACE_REDCRAFT_END
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "Testing/MiscellaneousTesting.h"
|
||||
|
||||
#include "Miscellaneous/AssertionMacros.h"
|
||||
#include "Miscellaneous/TypeInfo.h"
|
||||
#include "Miscellaneous/Compare.h"
|
||||
@ -7,6 +8,8 @@ NAMESPACE_REDCRAFT_BEGIN
|
||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||
NAMESPACE_MODULE_BEGIN(Utility)
|
||||
|
||||
NAMESPACE_BEGIN(Testing)
|
||||
|
||||
void TestMiscellaneous()
|
||||
{
|
||||
TestAssertionMacros();
|
||||
@ -234,6 +237,8 @@ void TestTypeInfo()
|
||||
always_check((TempE <=> TempF) != 0);
|
||||
}
|
||||
|
||||
NAMESPACE_END(Testing)
|
||||
|
||||
NAMESPACE_MODULE_END(Utility)
|
||||
NAMESPACE_MODULE_END(Redcraft)
|
||||
NAMESPACE_REDCRAFT_END
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "Testing/TemplatesTesting.h"
|
||||
|
||||
#include "Miscellaneous/AssertionMacros.h"
|
||||
#include "Miscellaneous/Compare.h"
|
||||
#include "Templates/Templates.h"
|
||||
@ -11,6 +12,8 @@ NAMESPACE_REDCRAFT_BEGIN
|
||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||
NAMESPACE_MODULE_BEGIN(Utility)
|
||||
|
||||
NAMESPACE_BEGIN(Testing)
|
||||
|
||||
void TestTemplates()
|
||||
{
|
||||
TestInvoke();
|
||||
@ -348,6 +351,8 @@ void TestMiscTemplates()
|
||||
always_check(AddressOf(TestMiscTemplates) == &TestMiscTemplates);
|
||||
}
|
||||
|
||||
NAMESPACE_END(Testing)
|
||||
|
||||
NAMESPACE_MODULE_END(Utility)
|
||||
NAMESPACE_MODULE_END(Redcraft)
|
||||
NAMESPACE_REDCRAFT_END
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "Testing/TypeTraitsTesting.h"
|
||||
|
||||
#include "Miscellaneous/AssertionMacros.h"
|
||||
#include "TypeTraits/TypeTraits.h"
|
||||
#include "Templates/Templates.h"
|
||||
@ -7,6 +8,8 @@ NAMESPACE_REDCRAFT_BEGIN
|
||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||
NAMESPACE_MODULE_BEGIN(Utility)
|
||||
|
||||
NAMESPACE_BEGIN(Testing)
|
||||
|
||||
// Warning: The test here is not a complete test, it is only used to determine whether the environment supports the traits
|
||||
|
||||
NAMESPACE_UNNAMED_BEGIN
|
||||
@ -530,6 +533,8 @@ void TestTypeTraits()
|
||||
|
||||
}
|
||||
|
||||
NAMESPACE_END(Testing)
|
||||
|
||||
NAMESPACE_MODULE_END(Utility)
|
||||
NAMESPACE_MODULE_END(Redcraft)
|
||||
NAMESPACE_REDCRAFT_END
|
||||
|
Reference in New Issue
Block a user