Reorganize NaN and Inf printing into if-else blocks

This commit is contained in:
jsalling
2016-10-12 21:58:28 -05:00
parent 30ba118c47
commit e48fe0a07c
2 changed files with 38 additions and 32 deletions

View File

@ -3228,6 +3228,18 @@ void testNotEqualFloatArraysLengthZero(void)
#endif
}
void testFloatVerbosePrinting(void)
{
#ifdef UNITY_FLOAT_VERBOSE
UnityPrintFloat(123456789.0f);
UnityPrintFloat(100000000.0f);
UnityPrintFloat(65536.0f*65536.0f);
UnityPrintFloat(1000000000.0f);
UnityPrintFloat(10000000000.0f);
UnityPrintFloat(9999999000.0f);
#endif
}
// ===================== THESE TEST WILL RUN IF YOUR CONFIG INCLUDES DOUBLE SUPPORT ==================
void testDoublesWithinDelta(void)