MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / UnityAssertEqualNumber

Function UnityAssertEqualNumber

tests/unity/src/unity.c:534–552  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

532
533/*-----------------------------------------------*/
534void UnityAssertEqualNumber(const UNITY_INT expected,
535 const UNITY_INT actual,
536 const char* msg,
537 const UNITY_LINE_TYPE lineNumber,
538 const UNITY_DISPLAY_STYLE_T style)
539{
540 RETURN_IF_FAIL_OR_IGNORE;
541
542 if (expected != actual)
543 {
544 UnityTestResultsFailBegin(lineNumber);
545 UnityPrint(UnityStrExpected);
546 UnityPrintNumberByStyle(expected, style);
547 UnityPrint(UnityStrWas);
548 UnityPrintNumberByStyle(actual, style);
549 UnityAddMsgIfSpecified(msg);
550 UNITY_FAIL_AND_BAIL;
551 }
552}
553
554/*-----------------------------------------------*/
555void UnityAssertGreaterOrLessOrEqualNumber(const UNITY_INT threshold,

Callers

nothing calls this directly

Calls 4

UnityPrintFunction · 0.85
UnityPrintNumberByStyleFunction · 0.85
UnityAddMsgIfSpecifiedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…