MCPcopy Index your code
hub / github.com/ThrowTheSwitch/Unity / UnityAssertEqualNumber

Function UnityAssertEqualNumber

src/unity.c:712–730  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

710
711/*-----------------------------------------------*/
712void UnityAssertEqualNumber(const UNITY_INT expected,
713 const UNITY_INT actual,
714 const char* msg,
715 const UNITY_LINE_TYPE lineNumber,
716 const UNITY_DISPLAY_STYLE_T style)
717{
718 RETURN_IF_FAIL_OR_IGNORE;
719
720 if (expected != actual)
721 {
722 UnityTestResultsFailBegin(lineNumber);
723 UnityPrint(UnityStrExpected);
724 UnityPrintNumberByStyle(expected, style);
725 UnityPrint(UnityStrWas);
726 UnityPrintNumberByStyle(actual, style);
727 UnityAddMsgIfSpecified(msg);
728 UNITY_FAIL_AND_BAIL;
729 }
730}
731
732/*-----------------------------------------------*/
733void 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