-----------------------------------------------*/
| 1239 | |
| 1240 | /*-----------------------------------------------*/ |
| 1241 | void UnityAssertDoublesWithin(const UNITY_DOUBLE delta, |
| 1242 | const UNITY_DOUBLE expected, |
| 1243 | const UNITY_DOUBLE actual, |
| 1244 | const char* msg, |
| 1245 | const UNITY_LINE_TYPE lineNumber) |
| 1246 | { |
| 1247 | RETURN_IF_FAIL_OR_IGNORE; |
| 1248 | |
| 1249 | if (!UnityDoublesWithin(delta, expected, actual)) |
| 1250 | { |
| 1251 | UnityTestResultsFailBegin(lineNumber); |
| 1252 | UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT(expected, actual); |
| 1253 | UnityAddMsgIfSpecified(msg); |
| 1254 | UNITY_FAIL_AND_BAIL; |
| 1255 | } |
| 1256 | } |
| 1257 | |
| 1258 | /*-----------------------------------------------*/ |
| 1259 | void UnityAssertDoublesNotWithin(const UNITY_DOUBLE delta, |
nothing calls this directly
no test coverage detected