| 47 | |
| 48 | template <class T> |
| 49 | inline void assert_equalish(T want, T got, T delta, const std::string& what) |
| 50 | { |
| 51 | if (!(fabs(want-got) <= delta)) |
| 52 | throw fail(MSG(what << " " << want << " !=~ " << got)); |
| 53 | } |
| 54 | |
| 55 | void assert_substring(const std::string& want, const std::string& got, const std::string& what) { |
| 56 | if (got.find(want) == std::string::npos) |
no test coverage detected