- Timestamp:
- 07/29/09 10:52:44 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/egamma_test.cpp
r441 r446 5 5 #include "itpp_ext.h" 6 6 #include "epdf_harness.h" 7 #include "egiw_harness.h"8 7 #include "mat_checks.h" 9 8 #include "UnitTest++.h" 10 11 const double epsilon = 0.00001;12 13 namespace UnitTest14 {15 16 inline void CheckClose(TestResults &results, const itpp::vec &expected,17 const itpp::vec &actual, double tolerance,18 TestDetails const &details) {19 if (!AreClose(expected, actual, tolerance)) {20 MemoryOutStream stream;21 stream << "Expected " << expected << " +/- " << tolerance << " but was " << actual;22 23 results.OnTestFailure(details, stream.GetText());24 }25 }26 27 }28 9 29 10 using namespace bdm;