43 #include "Teuchos_toString.hpp"
50 bool& showTestFailureLocationImpl()
52 static bool showTFL =
false;
62 const std::string &file,
const int lineNumber)
66 rtn +=
" ==> "+file+
":"+
toString(lineNumber);
74 showTestFailureLocationImpl() = showTFL;
80 return showTestFailureLocationImpl();
TEUCHOSCORE_LIB_DLL_EXPORT const std::string passfail_with_location(const bool result, const std::string &file, const int lineNumber)
Helper function for TEUCHOS_PASS_FAIL(...).
const std::string passfail(const bool result)
Return "passed" or "failed".
std::string toString(const any &rhs)
Converts the value in any to a std::string.
void showTestFailureLocation(bool)
Set if TEUCHOS_PASS_FAIL(...) should print test failure location.
Utilities to make writing tests easier.