16 bool phoenix_check(
const std::string & testName,
const std::string & val,
const std::string & reference){
17 bool b(val == reference);
19 std::cout <<
"phoenix_check : " << testName <<
" => " <<
phoenix_isOk(b) << std::endl;
20 std::cout <<
"\tval = '"<<val<<
"'" << std::endl;
21 std::cout <<
"\treference = '"<<reference<<
"'" << std::endl;
32 bool phoenix_check(
const std::string & testName,
const std::vector<std::string> & listVal,
const std::vector<std::string> & listRef){
35 b &=
phoenix_check(testName +
" size", listVal.size(), listRef.size());
36 for(
size_t i(0lu); i < listVal.size() && b; ++i){
48 bool phoenix_check(
const std::string & testName,
const std::list<std::string> & listVal,
const std::list<std::string> & listRef){
51 b &=
phoenix_check(testName +
" size", listVal.size(), listRef.size());
52 std::list<std::string>::const_iterator itVal(listVal.begin());
53 std::list<std::string>::const_iterator itRef(listRef.begin());
55 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.