1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

Merge pull request #425 from farrrb/fix-ti-c55-sizeof

TI C55x compatibility patches - removal of sizeof operator from the interfaces
This commit is contained in:
Mark VanderVoord
2019-07-05 15:41:41 -04:00
committed by GitHub
4 changed files with 75 additions and 51 deletions

View File

@@ -5730,7 +5730,11 @@ void testHexPrintsUpToMaxNumberOfNibbles(void)
startPutcharSpy();
UnityPrintNumberHex(0xBEE, 21);
endPutcharSpy();
TEST_ASSERT_EQUAL_INT(sizeof(UNITY_INT)*2, strlen(getBufferPutcharSpy()));
#ifdef UNITY_SUPPORT_64
TEST_ASSERT_EQUAL_INT(16, strlen(getBufferPutcharSpy()));
#else
TEST_ASSERT_EQUAL_INT( 8, strlen(getBufferPutcharSpy()));
#endif
#endif
}