39 Result(std::string nameIn, std::string objTypeIn):
58 virtual std::string
print()
const
61 ss <<
"Comparison of \"" <<
name <<
"\" of type " <<
objtype <<
" ";
62 passed ? ss<<
"Passed" : ss<<
"Failed";
friend std::ostream & operator<<(std::ostream &ostr, const Result &rhs)
Overload ostream for easy printing.
virtual std::string print() const
Print the result of the test - ie information store in the class.
std::string name
Name of object being compared in files.
bool passed
Whether it passed or not.
std::string objtype
Name of class of object being compared in files.
virtual ~Result()
Virtual destructor.