Lines Matching refs:delta
872 #define UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff) \ argument
877 if ((delta) < 0) (delta) = -(delta); \
878 return !(isnan(diff) || isinf(diff) || ((diff) > (delta)))
899 static int UnityFloatsWithin(UNITY_FLOAT delta, UNITY_FLOAT expected, UNITY_FLOAT actual) in UnityFloatsWithin() argument
902 UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff); in UnityFloatsWithin()
954 void UnityAssertFloatsWithin(const UNITY_FLOAT delta, in UnityAssertFloatsWithin() argument
963 if (!UnityFloatsWithin(delta, expected, actual)) in UnityAssertFloatsWithin()
1040 static int UnityDoublesWithin(UNITY_DOUBLE delta, UNITY_DOUBLE expected, UNITY_DOUBLE actual) in UnityDoublesWithin() argument
1043 UNITY_FLOAT_OR_DOUBLE_WITHIN(delta, expected, actual, diff); in UnityDoublesWithin()
1095 void UnityAssertDoublesWithin(const UNITY_DOUBLE delta, in UnityAssertDoublesWithin() argument
1103 if (!UnityDoublesWithin(delta, expected, actual)) in UnityAssertDoublesWithin()
1179 void UnityAssertNumbersWithin(const UNITY_UINT delta, in UnityAssertNumbersWithin() argument
1192 Unity.CurrentTestFailed = (((UNITY_UINT)actual - (UNITY_UINT)expected) > delta); in UnityAssertNumbersWithin()
1196 Unity.CurrentTestFailed = (((UNITY_UINT)expected - (UNITY_UINT)actual) > delta); in UnityAssertNumbersWithin()
1203 Unity.CurrentTestFailed = (((UNITY_UINT)actual - (UNITY_UINT)expected) > delta); in UnityAssertNumbersWithin()
1207 Unity.CurrentTestFailed = (((UNITY_UINT)expected - (UNITY_UINT)actual) > delta); in UnityAssertNumbersWithin()
1215 UnityPrintNumberByStyle((UNITY_INT)delta, style); in UnityAssertNumbersWithin()
1226 void UnityAssertNumbersArrayWithin(const UNITY_UINT delta, in UnityAssertNumbersArrayWithin() argument
1296 … Unity.CurrentTestFailed = (((UNITY_UINT)actual_val - (UNITY_UINT)expect_val) > delta); in UnityAssertNumbersArrayWithin()
1300 … Unity.CurrentTestFailed = (((UNITY_UINT)expect_val - (UNITY_UINT)actual_val) > delta); in UnityAssertNumbersArrayWithin()
1307 … Unity.CurrentTestFailed = (((UNITY_UINT)actual_val - (UNITY_UINT)expect_val) > delta); in UnityAssertNumbersArrayWithin()
1311 … Unity.CurrentTestFailed = (((UNITY_UINT)expect_val - (UNITY_UINT)actual_val) > delta); in UnityAssertNumbersArrayWithin()
1326 UnityPrintNumberByStyle((UNITY_INT)delta, style); in UnityAssertNumbersArrayWithin()