MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / UnityAssertDoublesWithin

Function UnityAssertDoublesWithin

tests/unity/src/unity.c:884–899  ·  view source on GitHub ↗

-----------------------------------------------*/

Source from the content-addressed store, hash-verified

882
883/*-----------------------------------------------*/
884void UnityAssertDoublesWithin(const UNITY_DOUBLE delta,
885 const UNITY_DOUBLE expected,
886 const UNITY_DOUBLE actual,
887 const char* msg,
888 const UNITY_LINE_TYPE lineNumber)
889{
890 RETURN_IF_FAIL_OR_IGNORE;
891
892 if (!UnityDoublesWithin(delta, expected, actual))
893 {
894 UnityTestResultsFailBegin(lineNumber);
895 UNITY_PRINT_EXPECTED_AND_ACTUAL_FLOAT(expected, actual);
896 UnityAddMsgIfSpecified(msg);
897 UNITY_FAIL_AND_BAIL;
898 }
899}
900
901/*-----------------------------------------------*/
902

Callers

nothing calls this directly

Calls 3

UnityDoublesWithinFunction · 0.85
UnityAddMsgIfSpecifiedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…