Lines Matching refs:actual

387 static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual)
401 if (actual != NULL)
404 UnityPrint(actual);
417 static int UnityCheckArraysForNull(UNITY_PTR_ATTRIBUTE const void* expected, UNITY_PTR_ATTRIBUTE const void* actual, const UNITY_LINE_TYPE lineNumber, const char* msg)
420 if ((expected == NULL) && (actual == NULL))
432 //throw error if just actual is NULL
433 if (actual == NULL)
451 const _U_SINT actual,
457 if ((mask & expected) != (mask & actual))
463 UnityPrintMask((_U_UINT)mask, (_U_UINT)actual);
471 const _U_SINT actual,
478 if (expected != actual)
484 UnityPrintNumberByStyle(actual, style);
492 UNITY_PTR_ATTRIBUTE const void* actual,
500 UNITY_PTR_ATTRIBUTE const _US8* ptr_act = (UNITY_PTR_ATTRIBUTE const _US8*)actual;
512 if (UnityCheckArraysForNull((UNITY_PTR_ATTRIBUTE const void*)expected, (UNITY_PTR_ATTRIBUTE const void*)actual, lineNumber, msg) == 1)
610 UNITY_PTR_ATTRIBUTE const _UF* actual,
617 UNITY_PTR_ATTRIBUTE const _UF* ptr_actual = actual;
630 if (UnityCheckArraysForNull((UNITY_PTR_ATTRIBUTE const void*)expected, (UNITY_PTR_ATTRIBUTE const void*)actual, lineNumber, msg) == 1)
667 const _UF actual,
671 _UF diff = actual - expected;
693 UnityPrintFloat(actual);
703 void UnityAssertFloatSpecial(const _UF actual,
721 is_trait = ((1.0f / f_zero) == actual) ? 1 : 0;
725 is_trait = ((-1.0f / f_zero) == actual) ? 1 : 0;
731 is_trait = (actual == actual) ? 0 : 1;
737 if ( (actual != actual) || ((1.0f / f_zero) == actual) || ((-1.0f / f_zero) == actual) )
755 UnityPrintFloat(actual);
771 UNITY_PTR_ATTRIBUTE const _UD* actual,
778 UNITY_PTR_ATTRIBUTE const _UD* ptr_actual = actual;
791 if (UnityCheckArraysForNull((UNITY_PTR_ATTRIBUTE void*)expected, (UNITY_PTR_ATTRIBUTE void*)actual, lineNumber, msg) == 1)
828 const _UD actual,
832 _UD diff = actual - expected;
854 UnityPrintFloat((float)actual);
865 void UnityAssertDoubleSpecial(const _UD actual,
883 is_trait = ((1.0 / d_zero) == actual) ? 1 : 0;
887 is_trait = ((-1.0 / d_zero) == actual) ? 1 : 0;
893 is_trait = (actual == actual) ? 0 : 1;
899 if ( (actual != actual) || ((1.0 / d_zero) == actual) || ((-1.0 / d_zero) == actual) )
917 UnityPrintFloat(actual);
934 const _U_SINT actual,
943 if (actual > expected)
944 Unity.CurrentTestFailed = ((actual - expected) > delta);
946 Unity.CurrentTestFailed = ((expected - actual) > delta);
950 if ((_U_UINT)actual > (_U_UINT)expected)
951 Unity.CurrentTestFailed = ((_U_UINT)(actual - expected) > (_U_UINT)delta);
953 Unity.CurrentTestFailed = ((_U_UINT)(expected - actual) > (_U_UINT)delta);
964 UnityPrintNumberByStyle(actual, style);
972 const char* actual,
981 if (expected && actual)
983 for (i = 0; expected[i] || actual[i]; i++)
985 if (expected[i] != actual[i])
994 if (expected != actual)
1003 UnityPrintExpectedAndActualStrings(expected, actual);
1011 const char** actual,
1029 if (UnityCheckArraysForNull((UNITY_PTR_ATTRIBUTE void*)expected, (UNITY_PTR_ATTRIBUTE void*)actual, lineNumber, msg) == 1)
1035 if (expected[j] && actual[j])
1037 for (i = 0; expected[j][i] || actual[j][i]; i++)
1039 if (expected[j][i] != actual[j][i])
1048 if (expected[j] != actual[j])
1062 UnityPrintExpectedAndActualStrings((const char*)(expected[j]), (const char*)(actual[j]));
1071 UNITY_PTR_ATTRIBUTE const void* actual,
1078 UNITY_PTR_ATTRIBUTE const unsigned char* ptr_act = (UNITY_PTR_ATTRIBUTE const unsigned char*)actual;
1092 if (UnityCheckArraysForNull((UNITY_PTR_ATTRIBUTE const void*)expected, (UNITY_PTR_ATTRIBUTE const void*)actual, lineNumber, msg) == 1)