18 #include <boost/lexical_cast.hpp> 21 : name_ (testName), next_(0), lineNumber_(-1), safeCheck_(true)
26 Test::Test (
const std::string& testName,
const std::string&
filename,
long lineNumber,
bool safeCheck)
45 if (expected == actual)
50 boost::lexical_cast<std::string> (__FILE__),
52 boost::lexical_cast<std::string> (expected),
53 boost::lexical_cast<std::string> (actual)));
62 if (expected == actual)
67 boost::lexical_cast<std::string> (__FILE__),
bool check(long expected, long actual, TestResult &result, const std::string &fileName, long lineNumber)
static void addTest(Test *test)
Test(const std::string &testName)
void test(OptionalJacobian< 2, 3 > H=boost::none)
virtual void addFailure(const Failure &failure)
bool safeCheck_
This is the line line number of the test, rather than the a single check.