4 #include "CORE_Object.h"
10 #include "CORE_OptionsList.h"
14 #include "CORE_Chrono.h"
17 #include "CORE_StdValArray.h"
20 #include "CORE_StdPtrArray.h"
24 #include "CORE_StdValField.h"
28 #include "CORE_StdPtrField.h"
31 #include "CORE_StringsList.h"
51 static const tFlag ALL_TESTS=0;
52 static const tFlag PRIMARY_TESTS=1;
53 static const tFlag ELEMENTARY_TESTS=2;
54 static const tFlag CASE_TESTS=3;
87 inline static CORE_UniquePointer<CORE_Test>
New() {
178 const tUSInt& nLevels,
179 const std::vector<tString>& localPaths,
180 std::vector<tString>& vpaths)
const;
224 template<
typename T,
typename Q>
225 requires functions_type::isRealType<T> || functions_type::isRealType<Q>
226 inline static tBoolean
Equals(
const T&a,
const Q&b) {
227 return (fabs(b-a)<std::numeric_limits<tFloat>::epsilon());
237 template<
typename T,
typename Q>
238 requires functions_type::isIntegerType<T> && functions_type::isIntegerType<Q>
239 inline static tBoolean
Equals(
const T&a,
const Q&b) {
251 tBoolean testTypes(
const CORE_Run& runner,
259 tBoolean testIO(
const CORE_Run& runner,
267 tBoolean testChrono(
const CORE_Run& runner,
277 tBoolean testMemorySize(
const CORE_Run& runner,
284 tBoolean testStringsList(
const CORE_Run& runner,
290 tBoolean testLoops(
const CORE_Run& runner,
308 template<
typename T,
class I>
327 template<
typename T,
class I> requires functions_type::isArithmeticType<T>
340 template<
typename T,
typename K,K D,
class S,
class I>
347 #include "CORE_Test.hpp"
this class describes an array of values T of dynamical size with algebrical operators and I is an imp...
Definition: CORE_Array.h:91
this class describes an field. A field is composed by
Definition: CORE_Field.h:49
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
abstract base class for most classes.
Definition: CORE_Object.h:65
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
This class is an list of options.
Definition: CORE_OptionsList.h:36
This class is a Run class for core package.
Definition: CORE_Run.h:44
This class is a test class for core package.
Definition: CORE_Test.h:42
tBoolean uniformRandomTest(CORE_Array< T, I > &A, CORE_Array< T, I > &B) const
randomizer test
Definition: CORE_Test.hpp:270
tBoolean testArray(const CORE_Run &runner, const CORE_OptionsList &options) const
test the numeric array
Definition: CORE_Test.cpp:754
tBoolean testCase(const CORE_Run &runner, const tString &name) const
execute the test case
Definition: CORE_Test.cpp:252
requires functions_type::isRealType< T > static functions_type::isRealType< Q > tBoolean Equals(const T &a, const Q &b)
retrun true if the two values are equals
Definition: CORE_Test.h:226
void setName(const tString &name)
set the test name
Definition: CORE_Test.h:119
tString getSearchingPathsToString() const
get the test path locations into string
Definition: CORE_Test.cpp:87
virtual ~CORE_Test(void)
destroy
Definition: CORE_Test.cpp:23
static CORE_UniquePointer< CORE_Test > New()
create a test class
Definition: CORE_Test.h:87
virtual tBoolean execute(const CORE_Run &runner, const CORE_OptionsList &options) const
execute the tests
Definition: CORE_Test.cpp:103
CORE_Test(void)
create
Definition: CORE_Test.cpp:19
virtual void getSearchingPaths(std::vector< tString > &vpaths) const
get the test path locations
Definition: CORE_Test.h:158
virtual tBoolean compareResults(const CORE_OptionsList &options, const tString &resultFile, const tString &referenceFile, const tReal &eps) const
make the difference between the two files
Definition: CORE_Test.cpp:342
tBoolean testField(const CORE_Run &runner, const CORE_OptionsList &options) const
test the numeric field
Definition: CORE_Test.cpp:773
virtual tBoolean elementaryTests(const CORE_Run &runner, const CORE_OptionsList &options) const
execute the elementary tests
Definition: CORE_Test.cpp:238
virtual tBoolean caseTests(const CORE_Run &runner, const CORE_OptionsList &options) const
execute the case tests
Definition: CORE_Test.cpp:245
virtual tBoolean primaryTests(const CORE_Run &runner, const CORE_OptionsList &options) const
execute the primary tests
Definition: CORE_Test.cpp:173
const tString & getName() const
get the test name
Definition: CORE_Test.h:125
virtual tMemSize getMemorySize() const override
return the memory size of the class
Definition: CORE_Test.h:101
tString searchPath(const tString &f) const
retun the path where the file f is withing the searching paths list
Definition: CORE_Test.cpp:72
requires functions_type::isIntegerType< T > &&static functions_type::isIntegerType< Q > tBoolean Equals(const T &a, const Q &b)
retrun true if the two values are equals
Definition: CORE_Test.h:239