提交 8168382b 编写于 作者: F Fabian Zahn

Adjust testHexPrintsUpToMaxNumberOfNibbles (independent of sizeof operator and arithmetics)

上级 c9b1d217
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册