15 bool phoenix_check(
const std::string & testName,
const std::string & val,
const std::string & reference){
16 bool b(val == reference);
18 std::cout <<
"phoenix_check : " << testName <<
" => " <<
phoenix_isOk(b) << std::endl;
19 std::cout <<
"\tval = '"<<val<<
"'" << std::endl;
20 std::cout <<
"\treference = '"<<reference<<
"'" << std::endl;
31 bool phoenix_check(
const std::string & testName,
const std::list<std::string> & listVal,
const std::list<std::string> & listRef){
34 b &=
phoenix_check(testName +
" size", listVal.size(), listRef.size());
35 std::list<std::string>::const_iterator itVal(listVal.begin());
36 std::list<std::string>::const_iterator itRef(listRef.begin());
38 while(itVal != listVal.end() && itRef != listRef.end() && b){
std::string valueToString(const T &val)
Convert a type into a string.
bool phoenix_check(const std::string &testName, const std::string &val, const std::string &reference)
Check two string.
std::string phoenix_isOk(bool b)
Print OK or FAIL depending on the given boolean.