Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First (far from done) implementation for printf style formatting for … #500

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
printf style formatting support for UnityAssertGreaterOrLessOrEqualNu…
…mber
  • Loading branch information
alariois committed May 5, 2020
commit 6607789ce6d140c9a6e44a55ee0fb7be611eaf94
13 changes: 10 additions & 3 deletions src/unity.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,9 @@ void UnityAssertEqualNumber(const UNITY_INT expected,
void UnityAssertGreaterOrLessOrEqualNumber(const UNITY_INT threshold,
const UNITY_INT actual,
const UNITY_COMPARISON_T compare,
const char *msg,
const UNITY_LINE_TYPE lineNumber,
const UNITY_DISPLAY_STYLE_T style)
const UNITY_DISPLAY_STYLE_T style,
const char* msg VA_ARGS_IF_ENABLED)
{
int failed = 0;
RETURN_IF_FAIL_OR_IGNORE;
Expand Down Expand Up @@ -809,7 +809,14 @@ void UnityAssertGreaterOrLessOrEqualNumber(const UNITY_INT threshold,
if (compare & UNITY_EQUAL_TO) { UnityPrint(UnityStrOrEqual); }
if (compare == UNITY_NOT_EQUAL) { UnityPrint(UnityStrNotEqual); }
UnityPrintNumberByStyle(threshold, style);
UnityAddMsgIfSpecified(msg);
#ifdef UNITY_INCLUDE_PRINT_FORMATTED
va_list va;
va_start(va, msg);
UnityAddMsgIfSpecified_TEMPORARY_VA_TEST(msg, va);
va_end(va);
#else
UnityAddMsgIfSpecified_TEMPORARY_VA_TEST(msg);
#endif
UNITY_FAIL_AND_BAIL;
}
}
Expand Down
95 changes: 93 additions & 2 deletions src/unity.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ void verifyTest(void);
#define TEST_ASSERT_EQUAL_CHAR_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_CHAR((expected), (actual), __LINE__, (message))

/* Integer Not Equal To (of all sizes) */
#ifndef UNITY_INCLUDE_PRINT_FORMATTED
#define TEST_ASSERT_NOT_EQUAL_INT_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_NOT_EQUAL_INT((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_NOT_EQUAL_INT8_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_NOT_EQUAL_INT8((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_NOT_EQUAL_INT16_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_NOT_EQUAL_INT16((threshold), (actual), __LINE__, (message))
Expand All @@ -486,9 +487,27 @@ void verifyTest(void);
#define TEST_ASSERT_NOT_EQUAL_HEX32_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_NOT_EQUAL_HEX32((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_NOT_EQUAL_HEX64_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_NOT_EQUAL_HEX64((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_NOT_EQUAL_CHAR_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_NOT_EQUAL_CHAR((threshold), (actual), __LINE__, (message))

#else
#define TEST_ASSERT_NOT_EQUAL_INT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_INT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_INT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_INT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_INT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_INT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_INT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_INT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_INT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_UINT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_UINT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_UINT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_UINT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_UINT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_UINT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_UINT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_UINT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_UINT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_size_t_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_HEX8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_HEX8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_HEX16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_HEX16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_HEX32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_HEX32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_HEX64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_HEX64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_NOT_EQUAL_CHAR_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_NOT_EQUAL_CHAR((threshold), (actual), __LINE__, __VA_ARGS__)
#endif

/* Integer Greater Than/ Less Than (of all sizes) */
#ifndef UNITY_INCLUDE_PRINT_FORMATTED
#define TEST_ASSERT_GREATER_THAN_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_GREATER_THAN_INT((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_GREATER_THAN_INT_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_GREATER_THAN_INT((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_GREATER_THAN_INT8_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_GREATER_THAN_INT8((threshold), (actual), __LINE__, (message))
Expand Down Expand Up @@ -560,7 +579,79 @@ void verifyTest(void);
#define TEST_ASSERT_LESS_OR_EQUAL_HEX32_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX32((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_LESS_OR_EQUAL_HEX64_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX64((threshold), (actual), __LINE__, (message))
#define TEST_ASSERT_LESS_OR_EQUAL_CHAR_MESSAGE(threshold, actual, message) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_CHAR((threshold), (actual), __LINE__, (message))

#else
#define TEST_ASSERT_GREATER_THAN_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_INT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_INT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_INT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_INT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_INT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_INT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_INT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_INT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_INT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_UINT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_UINT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_UINT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_UINT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_UINT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_UINT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_UINT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_UINT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_UINT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_size_t_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_HEX8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_HEX8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_HEX16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_HEX16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_HEX32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_HEX32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_HEX64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_HEX64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_THAN_CHAR_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_THAN_CHAR((threshold), (actual), __LINE__, __VA_ARGS__)

#define TEST_ASSERT_LESS_THAN_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_INT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_INT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_INT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_INT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_INT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_INT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_INT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_INT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_INT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_UINT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_UINT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_UINT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_UINT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_UINT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_UINT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_UINT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_UINT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_UINT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_size_t_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_HEX8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_HEX8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_HEX16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_HEX16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_HEX32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_HEX32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_HEX64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_HEX64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_THAN_CHAR_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_THAN_CHAR((threshold), (actual), __LINE__, __VA_ARGS__)

#define TEST_ASSERT_GREATER_OR_EQUAL_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_INT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_INT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_INT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_INT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_INT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_INT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_UINT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_UINT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_UINT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_UINT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_UINT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_size_t_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_HEX8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_HEX16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_HEX32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_HEX64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_HEX64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_GREATER_OR_EQUAL_CHAR_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_GREATER_OR_EQUAL_CHAR((threshold), (actual), __LINE__, __VA_ARGS__)

#define TEST_ASSERT_LESS_OR_EQUAL_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_INT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_INT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_INT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_INT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_INT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_INT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_UINT_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_UINT8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_UINT16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_UINT32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_UINT64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_size_t_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_UINT((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_HEX8_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX8((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_HEX16_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX16((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_HEX32_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX32((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_HEX64_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_HEX64((threshold), (actual), __LINE__, __VA_ARGS__)
#define TEST_ASSERT_LESS_OR_EQUAL_CHAR_MESSAGE(threshold, actual, ...) UNITY_TEST_ASSERT_SMALLER_OR_EQUAL_CHAR((threshold), (actual), __LINE__, __VA_ARGS__)
#endif
/* Integer Ranges (of all sizes) */
#define TEST_ASSERT_INT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, (message))
#define TEST_ASSERT_INT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, (message))
Expand Down
Loading