7 #ifndef __PHOENIX_CHECK_IMPL_H__
8 #define __PHOENIX_CHECK_IMPL_H__
23 bool phoenix_check(
const std::string & testName,
const std::vector<T> & vecVal,
const std::vector<T> & vecRef){
26 b &=
phoenix_check(testName +
" size", vecVal.size(), vecRef.size());
27 for(
size_t i(0lu); i < vecVal.size() && b; ++i){
40 bool phoenix_check(
const std::string & testName,
const T & val,
const T & reference){
41 bool b(val == reference);
43 std::cout <<
"phoenix_check : " << testName <<
" => " <<
phoenix_isOk(b) << std::endl;
static PString toString(const T &value)
Convert a value to a PString.
bool phoenix_check(const std::string &testName, const std::vector< T > &vecVal, const std::vector< T > &vecRef)
Check two vector of values.
std::string phoenix_isOk(bool b)
Print OK or FAIL depending on the given boolean.