mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-10-03 23:37:23 +00:00
Adjust testHexPrintsUpToMaxNumberOfNibbles (independent of sizeof operator and arithmetics)
This commit is contained in:
@@ -5730,7 +5730,11 @@ void testHexPrintsUpToMaxNumberOfNibbles(void)
|
|||||||
startPutcharSpy();
|
startPutcharSpy();
|
||||||
UnityPrintNumberHex(0xBEE, 21);
|
UnityPrintNumberHex(0xBEE, 21);
|
||||||
endPutcharSpy();
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user