g4tools  5.4.0
Namespaces | Macros | Functions
test File Reference
#include <ostream>
#include <string>
#include <vector>
Include dependency graph for test:

Go to the source code of this file.

Namespaces

 tools
 inlined C code : ///////////////////////////////////
 

Macros

#define tools_test
 
#define TOOLS_TEST_FUNC(a__func)    if(!tools::equal(a_out,__FILE__,__LINE__,(a__func),true)) return false;
 

Functions

bool tools::equal (std::ostream &a_out, const char *a_file, int a_line, const std::string &a_v, const std::string &a_expected)
 
bool tools::equal (std::ostream &a_out, const char *a_file, int a_line, bool a_v, bool a_expected)
 
template<class CLASS >
bool tools::valid_pointer (std::ostream &a_out, const char *a_file, int a_line, CLASS *a_p)
 
template<class INTEGER >
bool tools::equal (std::ostream &a_out, const char *a_file, int a_line, const INTEGER &a_v, const INTEGER &a_expected)
 
template<class INTEGER >
bool tools::not_equal (std::ostream &a_out, const char *a_file, int a_line, const INTEGER &a_v, const INTEGER &a_expected)
 
template<class INTEGER >
bool tools::ge (std::ostream &a_out, const char *a_file, int a_line, const INTEGER &a_v, const INTEGER &a_expected)
 
template<class REAL >
bool tools::equal (std::ostream &a_out, const char *a_file, int a_line, const REAL &a_v, const REAL &a_expected, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &))
 
template<class REAL >
bool tools::not_equal (std::ostream &a_out, const char *a_file, int a_line, const REAL &a_v, const REAL &a_expected, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &))
 
template<class NUMBER , class PREC >
bool tools::_equal (std::ostream &a_out, const char *a_file, int a_line, const NUMBER &a_v, const NUMBER &a_expected, const PREC &a_tolerance, PREC(*a_fabs)(const NUMBER &))
 
template<class REAL >
bool tools::equal (std::ostream &a_out, const char *a_file, int a_line, size_t a_size, const REAL *a_v, const REAL *a_expected, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &))
 
template<class VEC , class REAL >
bool tools::equal (std::ostream &a_out, const char *a_file, int a_line, const VEC &a_1, const VEC &a_2, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &))
 
template<class MAT , class REAL >
bool tools::mat_equal (std::ostream &a_out, const char *a_file, int a_line, const MAT &a_1, const MAT &a_2, const REAL &a_tolerance, REAL(*a_fabs)(const REAL &))
 
bool tools::equal (std::ostream &a_out, const char *a_file, int a_line, const std::vector< std::string > &a_v, const std::vector< std::string > &a_expected)
 

Macro Definition Documentation

◆ tools_test

#define tools_test

Definition at line 5 of file test.

◆ TOOLS_TEST_FUNC

#define TOOLS_TEST_FUNC (   a__func)     if(!tools::equal(a_out,__FILE__,__LINE__,(a__func),true)) return false;

Definition at line 37 of file test.