PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
phoenix_check_impl.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __PHOENIX_CHECK_IMPL_H__
8 #define __PHOENIX_CHECK_IMPL_H__
9 
10 #include <iostream>
11 #include "phoenix_check.h"
12 
14 
19 template<typename T>
20 bool phoenix_check(const std::string & testName, const T & val, const T & reference){
21  bool b(val == reference);
22  std::cout << "phoenix_check : " << testName << " => " << phoenix_isOk(b) << std::endl;
23  std::cout << "\t val = '"<<val<<"'" << std::endl;
24  std::cout << "\treference = '"<<reference<<"'" << std::endl;
25  return b;
26 }
27 
28 
29 #endif
phoenix_check
bool phoenix_check(const std::string &testName, const T &val, const T &reference)
Check two value.
Definition: phoenix_check_impl.h:20
phoenix_isOk
std::string phoenix_isOk(bool b)
Print OK or FAIL depending on the given boolean.
Definition: phoenix_isOk.cpp:14
phoenix_check.h