@@ -596,6 +596,7 @@ void UnityPrintF(const UNITY_LINE_TYPE line, const char* format, ...);
596596void UnityPrintLen (const char * string, const UNITY_UINT32 length);
597597void UnityPrintMask (const UNITY_UINT mask, const UNITY_UINT number);
598598void UnityPrintNumberByStyle (const UNITY_INT number, const UNITY_DISPLAY_STYLE_T style);
599+ void UnityPrintUintNumberByStyle (const UNITY_UINT number, const UNITY_DISPLAY_STYLE_T style);
599600void UnityPrintNumber (const UNITY_INT number_to_print);
600601void UnityPrintNumberUnsigned (const UNITY_UINT number);
601602void UnityPrintNumberHex (const UNITY_UINT number, const char nibbles_to_print);
@@ -612,11 +613,17 @@ void UnityPrintFloat(const UNITY_DOUBLE input_number);
612613 * convention and will pull in file and line information
613614 * for you. */
614615
615- void UnityAssertEqualNumber (const UNITY_INT expected,
616- const UNITY_INT actual,
617- const char * msg,
618- const UNITY_LINE_TYPE lineNumber,
619- const UNITY_DISPLAY_STYLE_T style);
616+ void UnityAssertEqualIntNumber (const UNITY_INT expected,
617+ const UNITY_INT actual,
618+ const char * msg,
619+ const UNITY_LINE_TYPE lineNumber,
620+ const UNITY_DISPLAY_STYLE_T style);
621+
622+ void UnityAssertEqualUintNumber (const UNITY_UINT expected,
623+ const UNITY_UINT actual,
624+ const char * msg,
625+ const UNITY_LINE_TYPE lineNumber,
626+ const UNITY_DISPLAY_STYLE_T style);
620627
621628void UnityAssertGreaterOrLessOrEqualNumber (const UNITY_INT threshold,
622629 const UNITY_INT actual,
@@ -899,18 +906,18 @@ int UnityTestMatches(void);
899906#define UNITY_TEST_ASSERT_EMPTY (pointer, line, message ) UNITY_TEST_ASSERT(((pointer[0 ]) == 0 ), (line), (message))
900907#define UNITY_TEST_ASSERT_NOT_EMPTY (pointer, line, message ) UNITY_TEST_ASSERT(((pointer[0 ]) != 0 ), (line), (message))
901908
902- #define UNITY_TEST_ASSERT_EQUAL_INT (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
903- #define UNITY_TEST_ASSERT_EQUAL_INT8 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
904- #define UNITY_TEST_ASSERT_EQUAL_INT16 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(UNITY_INT16)(expected), (UNITY_INT)(UNITY_INT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
905- #define UNITY_TEST_ASSERT_EQUAL_INT32 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(UNITY_INT32)(expected), (UNITY_INT)(UNITY_INT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
906- #define UNITY_TEST_ASSERT_EQUAL_UINT (expected, actual, line, message ) UnityAssertEqualNumber((UNITY_INT )(expected), (UNITY_INT )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
907- #define UNITY_TEST_ASSERT_EQUAL_UINT8 (expected, actual, line, message ) UnityAssertEqualNumber((UNITY_INT )(UNITY_UINT8 )(expected), (UNITY_INT )(UNITY_UINT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
908- #define UNITY_TEST_ASSERT_EQUAL_UINT16 (expected, actual, line, message ) UnityAssertEqualNumber((UNITY_INT )(UNITY_UINT16)(expected), (UNITY_INT )(UNITY_UINT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
909- #define UNITY_TEST_ASSERT_EQUAL_UINT32 (expected, actual, line, message ) UnityAssertEqualNumber((UNITY_INT )(UNITY_UINT32)(expected), (UNITY_INT )(UNITY_UINT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
910- #define UNITY_TEST_ASSERT_EQUAL_HEX8 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
911- #define UNITY_TEST_ASSERT_EQUAL_HEX16 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(UNITY_INT16)(expected), (UNITY_INT)(UNITY_INT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
912- #define UNITY_TEST_ASSERT_EQUAL_HEX32 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(UNITY_INT32)(expected), (UNITY_INT)(UNITY_INT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
913- #define UNITY_TEST_ASSERT_EQUAL_CHAR (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
909+ #define UNITY_TEST_ASSERT_EQUAL_INT (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
910+ #define UNITY_TEST_ASSERT_EQUAL_INT8 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT8)
911+ #define UNITY_TEST_ASSERT_EQUAL_INT16 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(UNITY_INT16)(expected), (UNITY_INT)(UNITY_INT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT16)
912+ #define UNITY_TEST_ASSERT_EQUAL_INT32 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(UNITY_INT32)(expected), (UNITY_INT)(UNITY_INT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT32)
913+ #define UNITY_TEST_ASSERT_EQUAL_UINT (expected, actual, line, message ) UnityAssertEqualUintNumber((UNITY_UINT )(expected), (UNITY_UINT )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT)
914+ #define UNITY_TEST_ASSERT_EQUAL_UINT8 (expected, actual, line, message ) UnityAssertEqualUintNumber((UNITY_UINT )(UNITY_UINT8 )(expected), (UNITY_UINT )(UNITY_UINT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT8)
915+ #define UNITY_TEST_ASSERT_EQUAL_UINT16 (expected, actual, line, message ) UnityAssertEqualUintNumber((UNITY_UINT )(UNITY_UINT16)(expected), (UNITY_UINT )(UNITY_UINT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT16)
916+ #define UNITY_TEST_ASSERT_EQUAL_UINT32 (expected, actual, line, message ) UnityAssertEqualUintNumber((UNITY_UINT )(UNITY_UINT32)(expected), (UNITY_UINT )(UNITY_UINT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT32)
917+ #define UNITY_TEST_ASSERT_EQUAL_HEX8 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX8)
918+ #define UNITY_TEST_ASSERT_EQUAL_HEX16 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(UNITY_INT16)(expected), (UNITY_INT)(UNITY_INT16)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX16)
919+ #define UNITY_TEST_ASSERT_EQUAL_HEX32 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(UNITY_INT32)(expected), (UNITY_INT)(UNITY_INT32)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX32)
920+ #define UNITY_TEST_ASSERT_EQUAL_CHAR (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(UNITY_INT8 )(expected), (UNITY_INT)(UNITY_INT8 )(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR)
914921#define UNITY_TEST_ASSERT_BITS (mask, expected, actual, line, message ) UnityAssertBits((UNITY_INT)(mask), (UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line))
915922
916923#define UNITY_TEST_ASSERT_NOT_EQUAL_INT (threshold, actual, line, message ) UnityAssertGreaterOrLessOrEqualNumber((UNITY_INT)(threshold), (UNITY_INT)(actual), UNITY_NOT_EQUAL, (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT)
@@ -1005,7 +1012,7 @@ int UnityTestMatches(void);
10051012#define UNITY_TEST_ASSERT_CHAR_ARRAY_WITHIN (delta, expected, actual, num_elements, line, message ) UnityAssertNumbersArrayWithin((UNITY_UINT8 )(delta), (UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), ((UNITY_UINT32)(num_elements)), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR, UNITY_ARRAY_TO_ARRAY)
10061013
10071014
1008- #define UNITY_TEST_ASSERT_EQUAL_PTR (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_PTR_TO_INT)(expected), (UNITY_PTR_TO_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_POINTER)
1015+ #define UNITY_TEST_ASSERT_EQUAL_PTR (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_PTR_TO_INT)(expected), (UNITY_PTR_TO_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_POINTER)
10091016#define UNITY_TEST_ASSERT_EQUAL_STRING (expected, actual, line, message ) UnityAssertEqualString((const char *)(expected), (const char *)(actual), (message), (UNITY_LINE_TYPE)(line))
10101017#define UNITY_TEST_ASSERT_EQUAL_STRING_LEN (expected, actual, len, line, message ) UnityAssertEqualStringLen((const char *)(expected), (const char *)(actual), (UNITY_UINT32)(len), (message), (UNITY_LINE_TYPE)(line))
10111018#define UNITY_TEST_ASSERT_EQUAL_MEMORY (expected, actual, len, line, message ) UnityAssertEqualMemory((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(len), 1 , (message), (UNITY_LINE_TYPE)(line), UNITY_ARRAY_TO_ARRAY)
@@ -1043,9 +1050,9 @@ int UnityTestMatches(void);
10431050#define UNITY_TEST_ASSERT_EACH_EQUAL_CHAR (expected, actual, num_elements, line, message ) UnityAssertEqualIntArray(UnityNumToPtr((UNITY_INT)(UNITY_INT8 )(expected), 1 ), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_CHAR, UNITY_ARRAY_TO_VAL)
10441051
10451052#ifdef UNITY_SUPPORT_64
1046- #define UNITY_TEST_ASSERT_EQUAL_INT64 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
1047- #define UNITY_TEST_ASSERT_EQUAL_UINT64 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
1048- #define UNITY_TEST_ASSERT_EQUAL_HEX64 (expected, actual, line, message ) UnityAssertEqualNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
1053+ #define UNITY_TEST_ASSERT_EQUAL_INT64 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64)
1054+ #define UNITY_TEST_ASSERT_EQUAL_UINT64 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64)
1055+ #define UNITY_TEST_ASSERT_EQUAL_HEX64 (expected, actual, line, message ) UnityAssertEqualIntNumber ((UNITY_INT)(expected), (UNITY_INT)(actual), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64)
10491056#define UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY (expected, actual, num_elements, line, message ) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_INT64, UNITY_ARRAY_TO_ARRAY)
10501057#define UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY (expected, actual, num_elements, line, message ) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_UINT64, UNITY_ARRAY_TO_ARRAY)
10511058#define UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY (expected, actual, num_elements, line, message ) UnityAssertEqualIntArray((UNITY_INTERNAL_PTR)(expected), (UNITY_INTERNAL_PTR)(actual), (UNITY_UINT32)(num_elements), (message), (UNITY_LINE_TYPE)(line), UNITY_DISPLAY_STYLE_HEX64, UNITY_ARRAY_TO_ARRAY)
0 commit comments