Unit Test Framework C and Traditional C++ API Reference
Assertions

Macros to assert conditions in unit tests. More...

Macros

#define RTITest_assertWithAction(statement__, failAction__)
 Assert that statement__ is TRUE with a custom action on failure. More...
 
#define RTITest_assert(statement__)    RTITest_assertWithAction(statement__, goto done)
 Run and assert a statement. If false, go to done tag. More...
 
#define RTITest_assertAfterDone(statement__)    RTITest_assertWithAction(statement__, result = RTI_TEST_RETCODE_FAILED)
 Run and assert a statement after the done tag. This sets the variable result to RTI_TEST_RETCODE_FAILED if the statement evaluates to false. More...
 
#define RTITest_assertWithNoAction(statement__)    RTITest_assertWithAction(statement__,)
 Run and assert a statement. In case of failure, only prints a message, no other action is run. More...
 
#define RTITest_assertAlmostEqualsFloat(limit__, actual__)
 Assert that two floating point numbers are almost equal. More...
 
#define RTITest_assertAlmostEqualsDouble(limit__, actual__)
 Assert that two doubles are almost equal. More...
 
#define RTITest_assertEqualsSN(expected__, actual__)
 Assert that two given Sequence Numbers are equal. More...
 
#define RTITest_assertEqualsDDS_Duration_t(expected__, actual__)    RTITest_assertComparisonForDDS_Duration_t(expected__, actual__, ==)
 Assert that two given DDS_Duration_t values are equal. More...
 
#define RTITest_assertEqualsString(expected__, actual__)
 Assert that two given strings are equal. More...
 
#define RTITest_assertNotEqualsString(expected__, actual__)
 Assert that two given strings are not equal. More...
 
#define RTITest_assertSubString(expectedSubStr__, actualStr__)
 Assert that expectedSubStr__ is contained in actualStr__. More...
 
#define RTITest_assertNotNull(object__)    RTITest_assertNotNullWithAction(object__, goto done)
 Assert that a given object is not NULL. More...
 
#define RTITest_assertNotNullWithAction(object__, failAction__)
 Assert that a given object is not NULL. More...
 
#define RTITest_assertNull(object__)    RTITest_assertNullWithAction(object__, goto done)
 Assert that a given object is NULL. More...
 
#define RTITest_assertNullWithAction(object__, failAction__)
 Assert that a given object is NULL. More...
 
#define RTITest_assertRetcodeWithAction(retcode__, failAction__, expectedRetcode__)
 Assert that two given DDS_ReturnCode_t return codes are equal. More...
 
#define RTITest_assertOkWithAction(retcode__, failAction__)    RTITest_assertRetcodeWithAction(retcode__, failAction__, DDS_RETCODE_OK)
 Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_OK. Otherwise, run the given action. More...
 
#define RTITest_assertOk(retcode__)    RTITest_assertOkWithAction((retcode__), goto done)
 Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_OK. More...
 
#define RTITest_assertErrorWithAction(retcode__, failAction__)    RTITest_assertRetcodeWithAction(retcode__, failAction__, DDS_RETCODE_ERROR)
 Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_ERROR. Otherwise, run the given action. More...
 
#define RTITest_assertEqualsRetcode(expected__, retcode__)    RTITest_assertRetcodeWithAction(retcode__, goto done, expected__)
 Assert that two DDS_ReturnCode_t return codes are equal, otherwise goto done. This macro requires the done label to be defined. More...
 
#define RTITest_assertError(retcode__)    RTITest_assertErrorWithAction((retcode__), goto done)
 Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_ERROR. More...
 
#define RTITest_assertOkAfterDone(retcode__)    RTITest_assertOkWithAction((retcode__), result = RTI_TEST_RETCODE_FAILED)
 Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_OK. Otherwise, set the result variable to RTI_TEST_RETCODE_FAILED. More...
 
#define RTITest_assertFalseWithAction(statement__, failAction__)
 Assert that a given statement is false. Otherwise, run the given action. More...
 
#define RTITest_assertFalse(statement__)    RTITest_assertFalseWithAction(statement__, goto done)
 Assert that a given statement is false. More...
 
#define RTITest_assertMarginWithAction(expected__, count__, tolerance_percentage__, failAction__)
 Assert that a given value is within a given tolerance. Otherwise, run the given action. More...
 
#define RTITest_assertMargin(expected__, count__, tolerance_percentage__)
 Assert that a given value is within a given tolerance. More...
 
#define RTITest_assertEqualsInt(expected__, actual__)
 Assert that two given integers (int) are equal. More...
 
#define RTITest_assertEqualsIntWithAction(expected__, actual__, failAction__)
 Assert that two given integers (int) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertEqualsIntAfterDone(expected__, actual__)
 Assert that two given integers (int) are equal after the done tag. This sets the variable result to RTI_TEST_RETCODE_FAILED if the comparison evaluates to false. More...
 
#define RTITest_assertNotEqualsInt(expected__, actual__)
 Assert that two given integers (int) are not equal. More...
 
#define RTITest_assertNotEqualsIntWithAction(expected__, actual__, failAction__)
 Assert that two given integers (int) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanInt(expected__, actual__)
 Assert that a given integer (int) is less than another given integer (int) More...
 
#define RTITest_assertLessThanIntWithAction(expected__, actual__, failAction__)
 Assert that a given integer (int) is less than another given integer (int) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsInt(expected__, actual__)
 Assert that a given integer (int) is less than or equal to another given integer (int) More...
 
#define RTITest_assertLessOrEqualsIntWithAction(expected__, actual__, failAction__)
 Assert that a given integer (int) is less than or equal to another given integer (int) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanInt(expected__, actual__)
 Assert that a given integer (int) is greater than another given integer (int) More...
 
#define RTITest_assertGreaterThanIntWithAction(expected__, actual__, failAction__)
 Assert that a given integer (int) is greater than another given integer (int) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsInt(expected__, actual__)
 Assert that a given integer (int) is greater than or equal to another given integer (int) More...
 
#define RTITest_assertGreaterOrEqualsIntWithAction(expected__, actual__, failAction__)
 Assert that a given integer (int) is greater than or equal to another given integer (int) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsUnsignedInt(expected__, actual__)
 Assert that two given unsigned integers (unsigned int) are equal. More...
 
#define RTITest_assertEqualsUnsignedIntWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned integers (unsigned int) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsUnsignedInt(expected__, actual__)
 Assert that two given unsigned integers (unsigned int) are not equal. More...
 
#define RTITest_assertNotEqualsUnsignedIntWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned integers (unsigned int) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanUnsignedInt(expected__, actual__)
 Assert that a given unsigned integer (unsigned int) is less than another given unsigned integer (unsigned int) More...
 
#define RTITest_assertLessThanUnsignedIntWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned integer (unsigned int) is less than another given unsigned integer (unsigned int) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsUnsignedInt(expected__, actual__)
 Assert that a given unsigned integer (unsigned int) is less than or equal to another given unsigned integer (unsigned int) More...
 
#define RTITest_assertLessOrEqualsUnsignedIntWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned integer (unsigned int) is less than or equal to another given unsigned integer (unsigned int) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanUnsignedInt(expected__, actual__)
 Assert that a given unsigned integer (unsigned int) is greater than another given unsigned integer (unsigned int) More...
 
#define RTITest_assertGreaterThanUnsignedIntWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned integer (unsigned int) is greater than another given unsigned integer (unsigned int) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsUnsignedInt(expected__, actual__)
 Assert that a given unsigned integer (unsigned int) is greater than or equal to another given unsigned integer (unsigned int) More...
 
#define RTITest_assertGreaterOrEqualsUnsignedIntWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned integer (unsigned int) is greater than or equal to another given unsigned integer (unsigned int) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsSignedChar(expected__, actual__)
 Assert that two given signed characters (signed char) are equal. More...
 
#define RTITest_assertEqualsSignedCharWithAction(expected__, actual__, failAction__)
 Assert that two given signed characters (signed char) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsSignedChar(expected__, actual__)
 Assert that two given signed characters (signed char) are not equal. More...
 
#define RTITest_assertNotEqualsSignedCharWithAction(expected__, actual__, failAction__)
 Assert that two given signed characters (signed char) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanSignedChar(expected__, actual__)
 Assert that a given signed character (signed char) is less than another given signed character (signed char) More...
 
#define RTITest_assertLessThanSignedCharWithAction(expected__, actual__, failAction__)
 Assert that a given signed character (signed char) is less than another given signed character (signed char) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsSignedChar(expected__, actual__)
 Assert that a given signed character (signed char) is less than or equal to another given signed character (signed char) More...
 
#define RTITest_assertLessOrEqualsSignedCharWithAction(expected__, actual__, failAction__)
 Assert that a given signed character (signed char) is less than or equal to another given signed character (signed char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanSignedChar(expected__, actual__)
 Assert that a given signed character (signed char) is greater than another given signed character (signed char) More...
 
#define RTITest_assertGreaterThanSignedCharWithAction(expected__, actual__, failAction__)
 Assert that a given signed character (signed char) is greater than another given signed character (signed char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsSignedChar(expected__, actual__)
 Assert that a given signed character (signed char) is greater than or equal to another given signed character (signed char) More...
 
#define RTITest_assertGreaterOrEqualsSignedCharWithAction(expected__, actual__, failAction__)
 Assert that a given signed character (signed char) is greater than or equal to another given signed character (signed char) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsChar(expected__, actual__)
 Assert that two given characters (unsigned char) are equal. More...
 
#define RTITest_assertEqualsCharWithAction(expected__, actual__, failAction__)
 Assert that two given characters (unsigned char) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsChar(expected__, actual__)
 Assert that two given characters (unsigned char) are not equal. More...
 
#define RTITest_assertNotEqualsCharWithAction(expected__, actual__, failAction__)
 Assert that two given characters (unsigned char) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanChar(expected__, actual__)
 Assert that a given character (unsigned char) is less than another given character (unsigned char) More...
 
#define RTITest_assertLessThanCharWithAction(expected__, actual__, failAction__)
 Assert that a given character (unsigned char) is less than another given character (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsChar(expected__, actual__)
 Assert that a given character (unsigned char) is less than or equal to another given character (unsigned char) More...
 
#define RTITest_assertLessOrEqualsCharWithAction(expected__, actual__, failAction__)
 Assert that a given character (unsigned char) is less than or equal to another given character (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanChar(expected__, actual__)
 Assert that a given character (unsigned char) is greater than another given character (unsigned char) More...
 
#define RTITest_assertGreaterThanCharWithAction(expected__, actual__, failAction__)
 Assert that a given character (unsigned char) is greater than another given character (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsChar(expected__, actual__)
 Assert that a given character (unsigned char) is greater than or equal to another given character (unsigned char) More...
 
#define RTITest_assertGreaterOrEqualsCharWithAction(expected__, actual__, failAction__)
 Assert that a given character (unsigned char) is greater than or equal to another given character (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsShort(expected__, actual__)
 Assert that two given short integers (char) are equal. More...
 
#define RTITest_assertEqualsShortWithAction(expected__, actual__, failAction__)
 Assert that two given short integers (char) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsShort(expected__, actual__)
 Assert that two given short integers (char) are not equal. More...
 
#define RTITest_assertNotEqualsShortWithAction(expected__, actual__, failAction__)
 Assert that two given short integers (char) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanShort(expected__, actual__)
 Assert that a given short integer (char) is less than another given short integer (char) More...
 
#define RTITest_assertLessThanShortWithAction(expected__, actual__, failAction__)
 Assert that a given short integer (char) is less than another given short integer (char) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsShort(expected__, actual__)
 Assert that a given short integer (char) is less than or equal to another given short integer (char) More...
 
#define RTITest_assertLessOrEqualsShortWithAction(expected__, actual__, failAction__)
 Assert that a given short integer (char) is less than or equal to another given short integer (char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanShort(expected__, actual__)
 Assert that a given short integer (char) is greater than another given short integer (char) More...
 
#define RTITest_assertGreaterThanShortWithAction(expected__, actual__, failAction__)
 Assert that a given short integer (char) is greater than another given short integer (char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsShort(expected__, actual__)
 Assert that a given short integer (char) is greater than or equal to another given short integer (char) More...
 
#define RTITest_assertGreaterOrEqualsShortWithAction(expected__, actual__, failAction__)
 Assert that a given short integer (char) is greater than or equal to another given short integer (char) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsUnsignedShort(expected__, actual__)
 Assert that two given unsigned short integers (unsigned char) are equal. More...
 
#define RTITest_assertEqualsUnsignedShortWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned short integers (unsigned char) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsUnsignedShort(expected__, actual__)
 Assert that two given unsigned short integers (unsigned char) are not equal. More...
 
#define RTITest_assertNotEqualsUnsignedShortWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned short integers (unsigned char) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanUnsignedShort(expected__, actual__)
 Assert that a given unsigned short integer (unsigned char) is less than another given unsigned short integer (unsigned char) More...
 
#define RTITest_assertLessThanUnsignedShortWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned short integer (unsigned char) is less than another given unsigned short integer (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsUnsignedShort(expected__, actual__)
 Assert that a given unsigned short integer (unsigned char) is less than or equal to another given unsigned short integer (unsigned char) More...
 
#define RTITest_assertLessOrEqualsUnsignedShortWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned short integer (unsigned char) is less than or equal to another given unsigned short integer (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanUnsignedShort(expected__, actual__)
 Assert that a given unsigned short integer (unsigned char) is greater than another given unsigned short integer (unsigned char) More...
 
#define RTITest_assertGreaterThanUnsignedShortWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned short integer (unsigned char) is greater than another given unsigned short integer (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsUnsignedShort(expected__, actual__)
 Assert that a given unsigned short integer (unsigned char) is greater than or equal to another given unsigned short integer (unsigned char) More...
 
#define RTITest_assertGreaterOrEqualsUnsignedShortWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned short integer (unsigned char) is greater than or equal to another given unsigned short integer (unsigned char) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsLongWithAction(expected__, actual__, failAction__)
 Assert that two given long integers (long) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsLong(expected__, actual__)
 Assert that two given long integers (long) are not equal. More...
 
#define RTITest_assertNotEqualsLongWithAction(expected__, actual__, failAction__)
 Assert that two given long integers (long) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanLong(expected__, actual__)
 Assert that a given long integer (long) is less than another given long integer (long) More...
 
#define RTITest_assertLessThanLongWithAction(expected__, actual__, failAction__)
 Assert that a given long integer (long) is less than another given long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsLong(expected__, actual__)
 Assert that a given long integer (long) is less than or equal to another given long integer (long) More...
 
#define RTITest_assertLessOrEqualsLongWithAction(expected__, actual__, failAction__)
 Assert that a given long integer (long) is less than or equal to another given long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanLong(expected__, actual__)
 Assert that a given long integer (long) is greater than another given long integer (long) More...
 
#define RTITest_assertGreaterThanLongWithAction(expected__, actual__, failAction__)
 Assert that a given long integer (long) is greater than another given long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsLong(expected__, actual__)
 Assert that a given long integer (long) is greater than or equal to another given long integer (long) More...
 
#define RTITest_assertGreaterOrEqualsLongWithAction(expected__, actual__, failAction__)
 Assert that a given long integer (long) is greater than or equal to another given long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsUnsignedLong(expected__, actual__)
 Assert that two given unsigned long integers (long) are equal. More...
 
#define RTITest_assertEqualsUnsignedLongWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned long integers (long) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsUnsignedLong(expected__, actual__)
 Assert that two given unsigned long integers (long) are not equal. More...
 
#define RTITest_assertNotEqualsUnsignedLongWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned long integers (long) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanUnsignedLong(expected__, actual__)
 Assert that a given unsigned long integer (long) is less than another given unsigned long integer (long) More...
 
#define RTITest_assertLessThanUnsignedLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long integer (long) is less than another given unsigned long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsUnsignedLong(expected__, actual__)
 Assert that a given unsigned long integer (long) is less than or equal to another given unsigned long integer (long) More...
 
#define RTITest_assertLessOrEqualsUnsignedLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long integer (long) is less than or equal to another given unsigned long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanUnsignedLong(expected__, actual__)
 Assert that a given unsigned long integer (long) is greater than another given unsigned long integer (long) More...
 
#define RTITest_assertGreaterThanUnsignedLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long integer (long) is greater than another given unsigned long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsUnsignedLong(expected__, actual__)
 Assert that a given unsigned long integer (long) is greater than or equal to another given unsigned long integer (long) More...
 
#define RTITest_assertGreaterOrEqualsUnsignedLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long integer (long) is greater than or equal to another given unsigned long integer (long) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsLongLong(expected__, actual__)
 Assert that two given long long integers (long long) are equal. More...
 
#define RTITest_assertEqualsLongLongWithAction(expected__, actual__, failAction__)
 Assert that two given long long integers (long long) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsLongLong(expected__, actual__)
 Assert that two given long long integers (long long) are not equal. More...
 
#define RTITest_assertNotEqualsLongLongWithAction(expected__, actual__, failAction__)
 Assert that two given long long integers (long long) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanLongLong(expected__, actual__)
 Assert that a given long long integer (long long) is less than another given long long integer (long long) More...
 
#define RTITest_assertLessThanLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given long long integer (long long) is less than another given long long integer (long long) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsLongLong(expected__, actual__)
 Assert that a given long long integer (long long) is less than or equal to another given long long integer (long long) More...
 
#define RTITest_assertLessOrEqualsLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given long long integer (long long) is less than or equal to another given long long integer (long long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanLongLong(expected__, actual__)
 Assert that a given long long integer (long long) is greater than another given long long integer (long long) More...
 
#define RTITest_assertGreaterThanLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given long long integer (long long) is greater than another given long long integer (long long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsLongLong(expected__, actual__)
 Assert that a given long long integer (long long) is greater than or equal to another given long long integer (long long) More...
 
#define RTITest_assertGreaterOrEqualsLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given long long integer (long long) is greater than or equal to another given long long integer (long long) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsUnsignedLongLong(expected__, actual__)
 Assert that two given unsigned long long integers (unsigned long long) are equal. More...
 
#define RTITest_assertEqualsUnsignedLongLongWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned long long integers (unsigned long long) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsUnsignedLongLong(expected__, actual__)
 Assert that two given unsigned long long integers (unsigned long long) are not equal. More...
 
#define RTITest_assertNotEqualsUnsignedLongLongWithAction(expected__, actual__, failAction__)
 Assert that two given unsigned long long integers (unsigned long long) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanUnsignedLongLong(expected__, actual__)
 Assert that a given unsigned long long integer (unsigned long long) is less than another given unsigned long long integer (unsigned long long) More...
 
#define RTITest_assertLessThanUnsignedLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long long integer (unsigned long long) is less than another given unsigned long long integer (unsigned long long) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsUnsignedLongLong(expected__, actual__)
 Assert that a given unsigned long long integer (unsigned long long) is less than or equal to another given unsigned long long integer (unsigned long long) More...
 
#define RTITest_assertLessOrEqualsUnsignedLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long long integer (unsigned long long) is less than or equal to another given unsigned long long integer (unsigned long long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanUnsignedLongLong(expected__, actual__)
 Assert that a given unsigned long long integer (unsigned long long) is greater than another given unsigned long long integer (unsigned long long) More...
 
#define RTITest_assertGreaterThanUnsignedLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long long integer (unsigned long long) is greater than another given unsigned long long integer (unsigned long long) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsUnsignedLongLong(expected__, actual__)
 Assert that a given unsigned long long integer (unsigned long long) is greater than or equal to another given unsigned long long integer (unsigned long long) More...
 
#define RTITest_assertGreaterOrEqualsUnsignedLongLongWithAction(expected__, actual__, failAction__)
 Assert that a given unsigned long long integer (unsigned long long) is greater than or equal to another given unsigned long long integer (unsigned long long) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsFloat(expected__, actual__)
 Assert that two given real numbers (float) are equal. More...
 
#define RTITest_assertEqualsFloatWithAction(expected__, actual__, failAction__)
 Assert that two given real numbers (float) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsFloat(expected__, actual__)
 Assert that two given real numbers (float) are not equal. More...
 
#define RTITest_assertNotEqualsFloatWithAction(expected__, actual__, failAction__)
 Assert that two given real numbers (float) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanFloat(expected__, actual__)
 Assert that a given real number (float) is less than another given real number (float) More...
 
#define RTITest_assertLessThanFloatWithAction(expected__, actual__, failAction__)
 Assert that a given real number (float) is less than another given real number (float) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsFloat(expected__, actual__)
 Assert that a given real number (float) is less than or equal to another given real number (float) More...
 
#define RTITest_assertLessOrEqualsFloatWithAction(expected__, actual__, failAction__)
 Assert that a given real number (float) is less than or equal to another given real number (float) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanFloat(expected__, actual__)
 Assert that a given real number (float) is greater than another given real number (float) More...
 
#define RTITest_assertGreaterThanFloatWithAction(expected__, actual__, failAction__)
 Assert that a given real number (float) is greater than another given real number (float) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsFloat(expected__, actual__)
 Assert that a given real number (float) is greater than or equal to another given real number (float) More...
 
#define RTITest_assertGreaterOrEqualsFloatWithAction(expected__, actual__, failAction__)
 Assert that a given real number (float) is greater than or equal to another given real number (float) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsDouble(expected__, actual__)
 Assert that two given double precision real numbers (double) are equal. More...
 
#define RTITest_assertEqualsDoubleWithAction(expected__, actual__, failAction__)
 Assert that two given double precision real numbers (double) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsDouble(expected__, actual__)
 Assert that two given double precision real numbers (double) are not equal. More...
 
#define RTITest_assertNotEqualsDoubleWithAction(expected__, actual__, failAction__)
 Assert that two given double precision real numbers (double) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanDouble(expected__, actual__)
 Assert that a given double precision real number (double) is less than another given double precision real number (double) More...
 
#define RTITest_assertLessThanDoubleWithAction(expected__, actual__, failAction__)
 Assert that a given double precision real number (double) is less than another given double precision real number (double) Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsDouble(expected__, actual__)
 Assert that a given double precision real number (double) is less than or equal to another given double precision real number (double) More...
 
#define RTITest_assertLessOrEqualsDoubleWithAction(expected__, actual__, failAction__)
 Assert that a given double precision real number (double) is less than or equal to another given double precision real number (double) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanDouble(expected__, actual__)
 Assert that a given double precision real number (double) is greater than another given double precision real number (double) More...
 
#define RTITest_assertGreaterThanDoubleWithAction(expected__, actual__, failAction__)
 Assert that a given double precision real number (double) is greater than another given double precision real number (double) Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsDouble(expected__, actual__)
 Assert that a given double precision real number (double) is greater than or equal to another given double precision real number (double) More...
 
#define RTITest_assertGreaterOrEqualsDoubleWithAction(expected__, actual__, failAction__)
 Assert that a given double precision real number (double) is greater than or equal to another given double precision real number (double) Otherwise, run the given action. More...
 
#define RTITest_assertEqualsPtr(expected__, actual__)
 Assert that two given pointers (void *) are equal. More...
 
#define RTITest_assertEqualsPtrWithAction(expected__, actual__, failAction__)
 Assert that two given pointers (void *) are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsPtr(expected__, actual__)
 Assert that two given pointers (void *) are not equal. More...
 
#define RTITest_assertNotEqualsPtrWithAction(expected__, actual__, failAction__)
 Assert that two given pointers (void *) are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertEqualsBoolean   RTITest_assertEqualsUnsignedShort
 Assert that two given booleans are equal. More...
 
#define RTITest_assertEqualsNumericalChar(expected__, actual__)
 Assert that two given numerical chars are equal. More...
 
#define RTITest_assertEqualsSize_t(expected__, actual__)
 Assert that two given size_t are equal. More...
 
#define RTITest_assertEqualsSize_tWithAction(expected__, actual__, failAction__)
 Assert that two given size_t are equal. Otherwise, run the given action. More...
 
#define RTITest_assertNotEqualsSize_t(expected__, actual__)
 Assert that two given size_t are not equal. More...
 
#define RTITest_assertNotEqualsSize_tWithAction(expected__, actual__, failAction__)
 Assert that two given size_t are not equal. Otherwise, run the given action. More...
 
#define RTITest_assertLessThanSize_t(expected__, actual__)
 Assert that a given size_t is less than another given size_t. More...
 
#define RTITest_assertLessThanSize_tWithAction(expected__, actual__, failAction__)
 Assert that a given size_t is less than another given size_t Otherwise, run the given action. More...
 
#define RTITest_assertLessOrEqualsSize_t(expected__, actual__)
 Assert that a given size_t is less than or equal to another given size_t. More...
 
#define RTITest_assertLessOrEqualsSize_tWithAction(expected__, actual__, failAction__)
 Assert that a given size_t is less than or equal to another given size_t Otherwise, run the given action. More...
 
#define RTITest_assertGreaterThanSize_t(expected__, actual__)
 Assert that a given size_t is greater than another given size_t. More...
 
#define RTITest_assertGreaterThanSize_tWithAction(expected__, actual__, failAction__)
 Assert that a given size_t is greater than another given size_t Otherwise, run the given action. More...
 
#define RTITest_assertGreaterOrEqualsSize_t(expected__, actual__)
 Assert that a given size_t is greater than or equal to another given size_t. More...
 
#define RTITest_assertGreaterOrEqualsSize_tWithAction(expected__, actual__, failAction__)
 Assert that a given size_t is greater than or equal to another given size_t Otherwise, run the given action. More...
 

Detailed Description

Macros to assert conditions in unit tests.

Macro Definition Documentation

◆ RTITest_assertWithAction

#define RTITest_assertWithAction (   statement__,
  failAction__ 
)
Value:
RTITest_debugAssert(statement__); \
if (!(statement__)) { \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] assertion failed: %s", \
__FILE__, \
__LINE__, \
#statement__); \
failAction__; \
}

Assert that statement__ is TRUE with a custom action on failure.

If statement__ is not true, then failAction__ will be performed

◆ RTITest_assert

#define RTITest_assert (   statement__)     RTITest_assertWithAction(statement__, goto done)

Run and assert a statement. If false, go to done tag.

Parameters
statement__In. Statement to be asserted.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertAfterDone

#define RTITest_assertAfterDone (   statement__)     RTITest_assertWithAction(statement__, result = RTI_TEST_RETCODE_FAILED)

Run and assert a statement after the done tag. This sets the variable result to RTI_TEST_RETCODE_FAILED if the statement evaluates to false.

Parameters
statement__In. Statement to be run and asserted.

◆ RTITest_assertWithNoAction

#define RTITest_assertWithNoAction (   statement__)     RTITest_assertWithAction(statement__,)

Run and assert a statement. In case of failure, only prints a message, no other action is run.

Parameters
statement__In. Statement to be run and asserted.

◆ RTITest_assertAlmostEqualsFloat

#define RTITest_assertAlmostEqualsFloat (   limit__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
limit__, \
actual__, \
float, \
==, \
0.0000007, \
goto done)

Assert that two floating point numbers are almost equal.

Parameters
limit__In. The maximum difference between the two numbers.
actual__In. The actual value.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertAlmostEqualsDouble

#define RTITest_assertAlmostEqualsDouble (   limit__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
limit__, \
actual__, \
double, \
==, \
0.0000007, \
goto done)

Assert that two doubles are almost equal.

Parameters
limit__In. The maximum difference between the two numbers.
actual__In. The actual value.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsSN

#define RTITest_assertEqualsSN (   expected__,
  actual__ 
)
Value:
{ \
RTITest_assertComparisonForType( \
(expected__).low, \
(actual__).low, \
unsigned int, \
"%u", \
==); \
RTITest_assertComparisonForType( \
(expected__).high, \
(actual__).high, \
int, \
"%d", \
==); \
}

Assert that two given Sequence Numbers are equal.

Parameters
expected__In. The expected Sequence Number.
actual__In. The actual Sequence Number.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsDDS_Duration_t

#define RTITest_assertEqualsDDS_Duration_t (   expected__,
  actual__ 
)     RTITest_assertComparisonForDDS_Duration_t(expected__, actual__, ==)

Assert that two given DDS_Duration_t values are equal.

Parameters
expected__In. The expected DDS_Duration_t value.
actual__In. The actual DDS_Duration_t value.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsString

#define RTITest_assertEqualsString (   expected__,
  actual__ 
)
Value:
RTITest_debugAssert(strcmp((expected__), (actual__)) == 0); \
if (strcmp((expected__), (actual__)) != 0) { \
const char *expectedConst__ = expected__; \
const char *actualConst__ = actual__; \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] assertion failed: strcmp(%s, %s) == 0: expected: %s, " \
"actual: %s", \
__FILE__, \
__LINE__, \
#expected__, \
#actual__, \
expectedConst__, \
actualConst__); \
goto done; \
}

Assert that two given strings are equal.

Parameters
expected__In. The expected string.
actual__In. The actual string.
Precondition
expected__ != NULL && actual__ != NULL

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsString

#define RTITest_assertNotEqualsString (   expected__,
  actual__ 
)
Value:
RTITest_debugAssert(strcmp((expected__), (actual__)) != 0); \
if (strcmp((expected__), (actual__)) == 0) { \
const char *expectedConst__ = expected__; \
const char *actualConst__ = actual__; \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] assertion failed: strcmp(%s, %s) != 0: not expected: %s, " \
"actual: %s", \
__FILE__, \
__LINE__, \
#expected__, \
#actual__, \
expectedConst__, \
actualConst__); \
goto done; \
}

Assert that two given strings are not equal.

Parameters
expected__In. The expected string.
actual__In. The actual string.
Precondition
expected__ != NULL && actual__ != NULL

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertSubString

#define RTITest_assertSubString (   expectedSubStr__,
  actualStr__ 
)
Value:
RTITest_debugAssert(strstr((actualStr__), (expectedSubStr__)) == NULL); \
if (strstr((actualStr__), (expectedSubStr__)) == NULL) { \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] assertion failed: expected to find string %s in %s", \
__FILE__, \
__LINE__, \
expectedSubStr__, \
actualStr__); \
goto done; \
}

Assert that expectedSubStr__ is contained in actualStr__.

Parameters
expectedSubStr__In. The substring to be searched.
actualStr__In. The string to be scanned.

Example: RTITest_assertSubString("a","abc");

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotNull

#define RTITest_assertNotNull (   object__)     RTITest_assertNotNullWithAction(object__, goto done)

Assert that a given object is not NULL.

Parameters
object__In. The object to be asserted.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotNullWithAction

#define RTITest_assertNotNullWithAction (   object__,
  failAction__ 
)
Value:
RTITest_debugAssert((object__) != NULL); \
if ((object__) == NULL) { \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] pointer is null: %s", \
__FILE__, \
__LINE__, \
#object__); \
failAction__; \
}

Assert that a given object is not NULL.

Parameters
object__In. The object to be asserted.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNull

#define RTITest_assertNull (   object__)     RTITest_assertNullWithAction(object__, goto done)

Assert that a given object is NULL.

Parameters
object__In. The object to be asserted.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNullWithAction

#define RTITest_assertNullWithAction (   object__,
  failAction__ 
)
Value:
RTITest_debugAssert((object__) == NULL); \
if ((object__) != NULL) { \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] pointer is not null: %s", \
__FILE__, \
__LINE__, \
#object__); \
failAction__; \
}

Assert that a given object is NULL.

Parameters
object__In. The object to be asserted.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertRetcodeWithAction

#define RTITest_assertRetcodeWithAction (   retcode__,
  failAction__,
  expectedRetcode__ 
)
Value:
{ \
DDS_ReturnCode_t retCodeTmp__ = (retcode__); \
unsigned int retCodeAsUInt__ = (unsigned int) retCodeTmp__; \
RTITest_debugAssert(retCodeTmp__ == (expectedRetcode__)); \
if (retCodeTmp__ != (expectedRetcode__)) { \
unsigned int index__ = \
(retCodeAsUInt__ < RTI_TEST_NUM_RETCODES - 1 \
? retCodeAsUInt__ \
: RTI_TEST_NUM_RETCODES); \
index__ = \
(retCodeTmp__ == DDS_RETCODE_NOT_ALLOWED_BY_SECURITY \
? RTI_TEST_NUM_RETCODES - 1 \
: index__); \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] assertion failed: %s == %s: got %s", \
__FILE__, \
__LINE__, \
#retcode__, \
#expectedRetcode__, \
RTITest_g_returnCodeStrings[index__]); \
failAction__; \
} \
}

Assert that two given DDS_ReturnCode_t return codes are equal.

Parameters
retcode__In. The actual DDS_ReturnCode_t return code.
failAction__In. Action to be run if the assertion fails.
expectedRetcode__In. The expected DDS_ReturnCode_t return code.

◆ RTITest_assertOkWithAction

#define RTITest_assertOkWithAction (   retcode__,
  failAction__ 
)     RTITest_assertRetcodeWithAction(retcode__, failAction__, DDS_RETCODE_OK)

Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_OK. Otherwise, run the given action.

Parameters
retcode__In. The actual DDS_ReturnCode_t return code.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertOk

#define RTITest_assertOk (   retcode__)     RTITest_assertOkWithAction((retcode__), goto done)

Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_OK.

Parameters
retcode__In. The actual DDS_ReturnCode_t return code.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertErrorWithAction

#define RTITest_assertErrorWithAction (   retcode__,
  failAction__ 
)     RTITest_assertRetcodeWithAction(retcode__, failAction__, DDS_RETCODE_ERROR)

Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_ERROR. Otherwise, run the given action.

Parameters
retcode__In. The actual DDS_ReturnCode_t return code.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsRetcode

#define RTITest_assertEqualsRetcode (   expected__,
  retcode__ 
)     RTITest_assertRetcodeWithAction(retcode__, goto done, expected__)

Assert that two DDS_ReturnCode_t return codes are equal, otherwise goto done. This macro requires the done label to be defined.

Parameters
expected__In. The expected DDS_ReturnCode_t.
retcode__In. The actual DDS_ReturnCode_t.

◆ RTITest_assertError

#define RTITest_assertError (   retcode__)     RTITest_assertErrorWithAction((retcode__), goto done)

Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_ERROR.

Parameters
retcode__In. The actual DDS_ReturnCode_t return code.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertOkAfterDone

#define RTITest_assertOkAfterDone (   retcode__)     RTITest_assertOkWithAction((retcode__), result = RTI_TEST_RETCODE_FAILED)

Assert that a given DDS_ReturnCode_t return code is DDS_RETCODE_OK. Otherwise, set the result variable to RTI_TEST_RETCODE_FAILED.

Parameters
retcode__In. The actual DDS_ReturnCode_t return code.

◆ RTITest_assertFalseWithAction

#define RTITest_assertFalseWithAction (   statement__,
  failAction__ 
)
Value:
RTITest_debugAssert(statement__); \
if ((statement__)) { \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"[%s:%d] assertion failed: !%s", \
__FILE__, \
__LINE__, \
#statement__); \
failAction__; \
}

Assert that a given statement is false. Otherwise, run the given action.

◆ RTITest_assertFalse

#define RTITest_assertFalse (   statement__)     RTITest_assertFalseWithAction(statement__, goto done)

Assert that a given statement is false.

Parameters
statement__In. The statement to be asserted.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertMarginWithAction

#define RTITest_assertMarginWithAction (   expected__,
  count__,
  tolerance_percentage__,
  failAction__ 
)
Value:
{ \
double tolerance = (double) (tolerance_percentage__) / 100; \
double max_count = (double) (expected__) * (1 + tolerance); \
double min_count = (double) (expected__) * (1 - tolerance); \
if (!((double) (count__) >= min_count \
&& (double) (count__) <= max_count)) { \
RTITest_assertLog( \
&RTI_TEST_LOG_EMPTY_TEMPLATE, \
"%s:[%s:%d]: value out of range: [%f, %f], count: %f\n", \
RTI_FUNCTION_NAME, \
__FILE__, \
__LINE__, \
min_count, \
max_count, \
(double) (count__)); \
failAction__; \
} \
}

Assert that a given value is within a given tolerance. Otherwise, run the given action.

Parameters
expected__In. The expected value.
count__In. The actual value.
tolerance_percentage__In. The tolerance percentage.
failAction__In. Action to be run if the assertion fails.

Checks whether count__ is within a margin specified by expected__ and a tolerance_percentage__

◆ RTITest_assertMargin

#define RTITest_assertMargin (   expected__,
  count__,
  tolerance_percentage__ 
)
Value:
expected__, \
count__, \
tolerance_percentage__, \
goto done)
#define RTITest_assertMarginWithAction(expected__, count__, tolerance_percentage__, failAction__)
Assert that a given value is within a given tolerance. Otherwise, run the given action.
Definition: test_assert.h:539

Assert that a given value is within a given tolerance.

Parameters
expected__In. The expected value.
count__In. The actual value.
tolerance_percentage__In. The tolerance percentage.

Checks whether count__ is within a margin specified by expected__ and a tolerance_percentage__.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsInt

#define RTITest_assertEqualsInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
int, \
"%d", \
==);

Assert that two given integers (int) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsIntWithAction

#define RTITest_assertEqualsIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
int, \
"%d", \
==, \
failAction__);

Assert that two given integers (int) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsIntAfterDone

#define RTITest_assertEqualsIntAfterDone (   expected__,
  actual__ 
)
Value:
expected__, \
actual__, \
#define RTITest_assertEqualsIntWithAction(expected__, actual__, failAction__)
Assert that two given integers (int) are equal. Otherwise, run the given action.
Definition: test_assert_types.h:165
#define RTI_TEST_RETCODE_FAILED
Use RTI_TEST_RETCODE_FAILED when a test has failed.
Definition: test_types.h:54

Assert that two given integers (int) are equal after the done tag. This sets the variable result to RTI_TEST_RETCODE_FAILED if the comparison evaluates to false.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

◆ RTITest_assertNotEqualsInt

#define RTITest_assertNotEqualsInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
int, \
"%d", \
!=);

Assert that two given integers (int) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsIntWithAction

#define RTITest_assertNotEqualsIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
int, \
"%d", \
!=, \
failAction__);

Assert that two given integers (int) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanInt

#define RTITest_assertLessThanInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
int, \
"%d", \
<);

Assert that a given integer (int) is less than another given integer (int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanIntWithAction

#define RTITest_assertLessThanIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
int, \
"%d", \
<, \
failAction__);

Assert that a given integer (int) is less than another given integer (int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsInt

#define RTITest_assertLessOrEqualsInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
int, \
"%d", \
<=);

Assert that a given integer (int) is less than or equal to another given integer (int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsIntWithAction

#define RTITest_assertLessOrEqualsIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
int, \
"%d", \
<=, \
failAction__);

Assert that a given integer (int) is less than or equal to another given integer (int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanInt

#define RTITest_assertGreaterThanInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
int, \
"%d", \
>);

Assert that a given integer (int) is greater than another given integer (int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanIntWithAction

#define RTITest_assertGreaterThanIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
int, \
"%d", \
>, \
failAction__);

Assert that a given integer (int) is greater than another given integer (int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsInt

#define RTITest_assertGreaterOrEqualsInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
int, \
"%d", \
>=);

Assert that a given integer (int) is greater than or equal to another given integer (int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsIntWithAction

#define RTITest_assertGreaterOrEqualsIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
int, \
"%d", \
>=, \
failAction__);

Assert that a given integer (int) is greater than or equal to another given integer (int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsUnsignedInt

#define RTITest_assertEqualsUnsignedInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned int, \
"%u", \
==);

Assert that two given unsigned integers (unsigned int) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsUnsignedIntWithAction

#define RTITest_assertEqualsUnsignedIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned int, \
"%u", \
==, \
failAction__);

Assert that two given unsigned integers (unsigned int) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsUnsignedInt

#define RTITest_assertNotEqualsUnsignedInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned int, \
"%u", \
!=);

Assert that two given unsigned integers (unsigned int) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsUnsignedIntWithAction

#define RTITest_assertNotEqualsUnsignedIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned int, \
"%u", \
!=, \
failAction__);

Assert that two given unsigned integers (unsigned int) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanUnsignedInt

#define RTITest_assertLessThanUnsignedInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned int, \
"%u", \
<);

Assert that a given unsigned integer (unsigned int) is less than another given unsigned integer (unsigned int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanUnsignedIntWithAction

#define RTITest_assertLessThanUnsignedIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned int, \
"%u", \
<, \
failAction__);

Assert that a given unsigned integer (unsigned int) is less than another given unsigned integer (unsigned int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsUnsignedInt

#define RTITest_assertLessOrEqualsUnsignedInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned int, \
"%u", \
<=);

Assert that a given unsigned integer (unsigned int) is less than or equal to another given unsigned integer (unsigned int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsUnsignedIntWithAction

#define RTITest_assertLessOrEqualsUnsignedIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned int, \
"%u", \
<=, \
failAction__);

Assert that a given unsigned integer (unsigned int) is less than or equal to another given unsigned integer (unsigned int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanUnsignedInt

#define RTITest_assertGreaterThanUnsignedInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned int, \
"%u", \
>);

Assert that a given unsigned integer (unsigned int) is greater than another given unsigned integer (unsigned int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanUnsignedIntWithAction

#define RTITest_assertGreaterThanUnsignedIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned int, \
"%u", \
>, \
failAction__);

Assert that a given unsigned integer (unsigned int) is greater than another given unsigned integer (unsigned int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsUnsignedInt

#define RTITest_assertGreaterOrEqualsUnsignedInt (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned int, \
"%u", \
>=);

Assert that a given unsigned integer (unsigned int) is greater than or equal to another given unsigned integer (unsigned int)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsUnsignedIntWithAction

#define RTITest_assertGreaterOrEqualsUnsignedIntWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned int, \
"%u", \
>=, \
failAction__);

Assert that a given unsigned integer (unsigned int) is greater than or equal to another given unsigned integer (unsigned int) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsSignedChar

#define RTITest_assertEqualsSignedChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
signed char, \
"%c", \
==);

Assert that two given signed characters (signed char) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsSignedCharWithAction

#define RTITest_assertEqualsSignedCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
signed char, \
"%c", \
==, \
failAction__);

Assert that two given signed characters (signed char) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsSignedChar

#define RTITest_assertNotEqualsSignedChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
signed char, \
"%c", \
!=);

Assert that two given signed characters (signed char) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsSignedCharWithAction

#define RTITest_assertNotEqualsSignedCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
signed char, \
"%c", \
!=, \
failAction__);

Assert that two given signed characters (signed char) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanSignedChar

#define RTITest_assertLessThanSignedChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
signed char, \
"%c", \
<);

Assert that a given signed character (signed char) is less than another given signed character (signed char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanSignedCharWithAction

#define RTITest_assertLessThanSignedCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
signed char, \
"%c", \
<, \
failAction__);

Assert that a given signed character (signed char) is less than another given signed character (signed char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsSignedChar

#define RTITest_assertLessOrEqualsSignedChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
signed char, \
"%c", \
<=);

Assert that a given signed character (signed char) is less than or equal to another given signed character (signed char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsSignedCharWithAction

#define RTITest_assertLessOrEqualsSignedCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
signed char, \
"%c", \
<=, \
failAction__);

Assert that a given signed character (signed char) is less than or equal to another given signed character (signed char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanSignedChar

#define RTITest_assertGreaterThanSignedChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
signed char, \
"%c", \
>);

Assert that a given signed character (signed char) is greater than another given signed character (signed char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanSignedCharWithAction

#define RTITest_assertGreaterThanSignedCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
signed char, \
"%c", \
>, \
failAction__);

Assert that a given signed character (signed char) is greater than another given signed character (signed char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsSignedChar

#define RTITest_assertGreaterOrEqualsSignedChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
signed char, \
"%c", \
>=);

Assert that a given signed character (signed char) is greater than or equal to another given signed character (signed char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsSignedCharWithAction

#define RTITest_assertGreaterOrEqualsSignedCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
signed char, \
"%c", \
>=, \
failAction__);

Assert that a given signed character (signed char) is greater than or equal to another given signed character (signed char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsChar

#define RTITest_assertEqualsChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
==);

Assert that two given characters (unsigned char) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsCharWithAction

#define RTITest_assertEqualsCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
==, \
failAction__);

Assert that two given characters (unsigned char) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

◆ RTITest_assertNotEqualsChar

#define RTITest_assertNotEqualsChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
!=);

Assert that two given characters (unsigned char) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsCharWithAction

#define RTITest_assertNotEqualsCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
!=, \
failAction__);

Assert that two given characters (unsigned char) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

◆ RTITest_assertLessThanChar

#define RTITest_assertLessThanChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
<);

Assert that a given character (unsigned char) is less than another given character (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanCharWithAction

#define RTITest_assertLessThanCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
(unsigned int) (expected__), \
(unsigned int) (actual__), \
int, \
"%c", \
<, \
failAction__);

Assert that a given character (unsigned char) is less than another given character (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

◆ RTITest_assertLessOrEqualsChar

#define RTITest_assertLessOrEqualsChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
<=);

Assert that a given character (unsigned char) is less than or equal to another given character (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsCharWithAction

#define RTITest_assertLessOrEqualsCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
<=, \
failAction__);

Assert that a given character (unsigned char) is less than or equal to another given character (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

◆ RTITest_assertGreaterThanChar

#define RTITest_assertGreaterThanChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
>);

Assert that a given character (unsigned char) is greater than another given character (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanCharWithAction

#define RTITest_assertGreaterThanCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%c", \
>, \
failAction__);

Assert that a given character (unsigned char) is greater than another given character (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

◆ RTITest_assertGreaterOrEqualsChar

#define RTITest_assertGreaterOrEqualsChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
(unsigned int) (expected__), \
(unsigned int) (actual__), \
int, \
"%c", \
>=);

Assert that a given character (unsigned char) is greater than or equal to another given character (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsCharWithAction

#define RTITest_assertGreaterOrEqualsCharWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
(unsigned int) (expected__), \
(unsigned int) (actual__), \
int, \
"%c", \
>=, \
failAction__);

Assert that a given character (unsigned char) is greater than or equal to another given character (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

◆ RTITest_assertEqualsShort

#define RTITest_assertEqualsShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
short, \
"%hhd", \
==);

Assert that two given short integers (char) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsShortWithAction

#define RTITest_assertEqualsShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
short, \
"%hhd", \
==, \
failAction__);

Assert that two given short integers (char) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsShort

#define RTITest_assertNotEqualsShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
short, \
"%hhd", \
!=);

Assert that two given short integers (char) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsShortWithAction

#define RTITest_assertNotEqualsShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
short, \
"%hhd", \
!=, \
failAction__);

Assert that two given short integers (char) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanShort

#define RTITest_assertLessThanShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
short, \
"%hhd", \
<);

Assert that a given short integer (char) is less than another given short integer (char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanShortWithAction

#define RTITest_assertLessThanShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
short, \
"%hhd", \
<, \
failAction__);

Assert that a given short integer (char) is less than another given short integer (char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsShort

#define RTITest_assertLessOrEqualsShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
short, \
"%hhd", \
<=);

Assert that a given short integer (char) is less than or equal to another given short integer (char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsShortWithAction

#define RTITest_assertLessOrEqualsShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
short, \
"%hhd", \
<=, \
failAction__);

Assert that a given short integer (char) is less than or equal to another given short integer (char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanShort

#define RTITest_assertGreaterThanShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
short, \
"%hhd", \
>);

Assert that a given short integer (char) is greater than another given short integer (char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanShortWithAction

#define RTITest_assertGreaterThanShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
short, \
"%hhd", \
>, \
failAction__);

Assert that a given short integer (char) is greater than another given short integer (char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsShort

#define RTITest_assertGreaterOrEqualsShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
short, \
"%hhd", \
>=);

Assert that a given short integer (char) is greater than or equal to another given short integer (char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsShortWithAction

#define RTITest_assertGreaterOrEqualsShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
short, \
"%hhd", \
>=, \
failAction__);

Assert that a given short integer (char) is greater than or equal to another given short integer (char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsUnsignedShort

#define RTITest_assertEqualsUnsignedShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
==);

Assert that two given unsigned short integers (unsigned char) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsUnsignedShortWithAction

#define RTITest_assertEqualsUnsignedShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
==, \
failAction__);

Assert that two given unsigned short integers (unsigned char) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsUnsignedShort

#define RTITest_assertNotEqualsUnsignedShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
!=);

Assert that two given unsigned short integers (unsigned char) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsUnsignedShortWithAction

#define RTITest_assertNotEqualsUnsignedShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
!=, \
failAction__);

Assert that two given unsigned short integers (unsigned char) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanUnsignedShort

#define RTITest_assertLessThanUnsignedShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
<);

Assert that a given unsigned short integer (unsigned char) is less than another given unsigned short integer (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanUnsignedShortWithAction

#define RTITest_assertLessThanUnsignedShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
<, \
failAction__);

Assert that a given unsigned short integer (unsigned char) is less than another given unsigned short integer (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsUnsignedShort

#define RTITest_assertLessOrEqualsUnsignedShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
<=);

Assert that a given unsigned short integer (unsigned char) is less than or equal to another given unsigned short integer (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsUnsignedShortWithAction

#define RTITest_assertLessOrEqualsUnsignedShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
<=, \
failAction__);

Assert that a given unsigned short integer (unsigned char) is less than or equal to another given unsigned short integer (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanUnsignedShort

#define RTITest_assertGreaterThanUnsignedShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
>);

Assert that a given unsigned short integer (unsigned char) is greater than another given unsigned short integer (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanUnsignedShortWithAction

#define RTITest_assertGreaterThanUnsignedShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
>, \
failAction__);

Assert that a given unsigned short integer (unsigned char) is greater than another given unsigned short integer (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsUnsignedShort

#define RTITest_assertGreaterOrEqualsUnsignedShort (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
>=);

Assert that a given unsigned short integer (unsigned char) is greater than or equal to another given unsigned short integer (unsigned char)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsUnsignedShortWithAction

#define RTITest_assertGreaterOrEqualsUnsignedShortWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned short, \
"%hhu", \
>=, \
failAction__);

Assert that a given unsigned short integer (unsigned char) is greater than or equal to another given unsigned short integer (unsigned char) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsLongWithAction

#define RTITest_assertEqualsLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%ld", \
==, \
failAction__);

Assert that two given long integers (long) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsLong

#define RTITest_assertNotEqualsLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%ld", \
!=);

Assert that two given long integers (long) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsLongWithAction

#define RTITest_assertNotEqualsLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%ld", \
!=, \
failAction__);

Assert that two given long integers (long) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanLong

#define RTITest_assertLessThanLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%ld", \
<);

Assert that a given long integer (long) is less than another given long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanLongWithAction

#define RTITest_assertLessThanLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%ld", \
<, \
failAction__);

Assert that a given long integer (long) is less than another given long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsLong

#define RTITest_assertLessOrEqualsLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%ld", \
<=);

Assert that a given long integer (long) is less than or equal to another given long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsLongWithAction

#define RTITest_assertLessOrEqualsLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%ld", \
<=, \
failAction__);

Assert that a given long integer (long) is less than or equal to another given long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanLong

#define RTITest_assertGreaterThanLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%ld", \
>);

Assert that a given long integer (long) is greater than another given long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanLongWithAction

#define RTITest_assertGreaterThanLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%ld", \
>, \
failAction__);

Assert that a given long integer (long) is greater than another given long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsLong

#define RTITest_assertGreaterOrEqualsLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%ld", \
>=);

Assert that a given long integer (long) is greater than or equal to another given long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsLongWithAction

#define RTITest_assertGreaterOrEqualsLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%ld", \
>=, \
failAction__);

Assert that a given long integer (long) is greater than or equal to another given long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsUnsignedLong

#define RTITest_assertEqualsUnsignedLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%lu", \
==);

Assert that two given unsigned long integers (long) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsUnsignedLongWithAction

#define RTITest_assertEqualsUnsignedLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%lu", \
==, \
failAction__);

Assert that two given unsigned long integers (long) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsUnsignedLong

#define RTITest_assertNotEqualsUnsignedLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%lu", \
!=);

Assert that two given unsigned long integers (long) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsUnsignedLongWithAction

#define RTITest_assertNotEqualsUnsignedLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%lu", \
!=, \
failAction__);

Assert that two given unsigned long integers (long) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanUnsignedLong

#define RTITest_assertLessThanUnsignedLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%lu", \
<);

Assert that a given unsigned long integer (long) is less than another given unsigned long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanUnsignedLongWithAction

#define RTITest_assertLessThanUnsignedLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%lu", \
<, \
failAction__);

Assert that a given unsigned long integer (long) is less than another given unsigned long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsUnsignedLong

#define RTITest_assertLessOrEqualsUnsignedLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%lu", \
<=);

Assert that a given unsigned long integer (long) is less than or equal to another given unsigned long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsUnsignedLongWithAction

#define RTITest_assertLessOrEqualsUnsignedLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%lu", \
<=, \
failAction__);

Assert that a given unsigned long integer (long) is less than or equal to another given unsigned long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanUnsignedLong

#define RTITest_assertGreaterThanUnsignedLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%lu", \
>);

Assert that a given unsigned long integer (long) is greater than another given unsigned long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanUnsignedLongWithAction

#define RTITest_assertGreaterThanUnsignedLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%lu", \
>, \
failAction__);

Assert that a given unsigned long integer (long) is greater than another given unsigned long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsUnsignedLong

#define RTITest_assertGreaterOrEqualsUnsignedLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long, \
"%lu", \
>=);

Assert that a given unsigned long integer (long) is greater than or equal to another given unsigned long integer (long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsUnsignedLongWithAction

#define RTITest_assertGreaterOrEqualsUnsignedLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long, \
"%lu", \
>=, \
failAction__);

Assert that a given unsigned long integer (long) is greater than or equal to another given unsigned long integer (long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsLongLong

#define RTITest_assertEqualsLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long long, \
"%lld", \
==);

Assert that two given long long integers (long long) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsLongLongWithAction

#define RTITest_assertEqualsLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long long, \
"%lld", \
==, \
failAction__);

Assert that two given long long integers (long long) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsLongLong

#define RTITest_assertNotEqualsLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long long, \
"%lld", \
!=);

Assert that two given long long integers (long long) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsLongLongWithAction

#define RTITest_assertNotEqualsLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long long, \
"%lld", \
!=, \
failAction__);

Assert that two given long long integers (long long) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanLongLong

#define RTITest_assertLessThanLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long long, \
"%lld", \
<);

Assert that a given long long integer (long long) is less than another given long long integer (long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanLongLongWithAction

#define RTITest_assertLessThanLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long long, \
"%lld", \
<, \
failAction__);

Assert that a given long long integer (long long) is less than another given long long integer (long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsLongLong

#define RTITest_assertLessOrEqualsLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long long, \
"%lld", \
<=);

Assert that a given long long integer (long long) is less than or equal to another given long long integer (long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsLongLongWithAction

#define RTITest_assertLessOrEqualsLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long long, \
"%lld", \
<=, \
failAction__);

Assert that a given long long integer (long long) is less than or equal to another given long long integer (long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanLongLong

#define RTITest_assertGreaterThanLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long long, \
"%lld", \
>);

Assert that a given long long integer (long long) is greater than another given long long integer (long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanLongLongWithAction

#define RTITest_assertGreaterThanLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long long, \
"%lld", \
>, \
failAction__);

Assert that a given long long integer (long long) is greater than another given long long integer (long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsLongLong

#define RTITest_assertGreaterOrEqualsLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
long long, \
"%lld", \
>=);

Assert that a given long long integer (long long) is greater than or equal to another given long long integer (long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsLongLongWithAction

#define RTITest_assertGreaterOrEqualsLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
long long, \
"%lld", \
>=, \
failAction__);

Assert that a given long long integer (long long) is greater than or equal to another given long long integer (long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsUnsignedLongLong

#define RTITest_assertEqualsUnsignedLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
==);

Assert that two given unsigned long long integers (unsigned long long) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsUnsignedLongLongWithAction

#define RTITest_assertEqualsUnsignedLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
==, \
failAction__);

Assert that two given unsigned long long integers (unsigned long long) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsUnsignedLongLong

#define RTITest_assertNotEqualsUnsignedLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
!=);

Assert that two given unsigned long long integers (unsigned long long) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsUnsignedLongLongWithAction

#define RTITest_assertNotEqualsUnsignedLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
!=, \
failAction__);

Assert that two given unsigned long long integers (unsigned long long) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanUnsignedLongLong

#define RTITest_assertLessThanUnsignedLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
<);

Assert that a given unsigned long long integer (unsigned long long) is less than another given unsigned long long integer (unsigned long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanUnsignedLongLongWithAction

#define RTITest_assertLessThanUnsignedLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
<, \
failAction__);

Assert that a given unsigned long long integer (unsigned long long) is less than another given unsigned long long integer (unsigned long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsUnsignedLongLong

#define RTITest_assertLessOrEqualsUnsignedLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
<=);

Assert that a given unsigned long long integer (unsigned long long) is less than or equal to another given unsigned long long integer (unsigned long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsUnsignedLongLongWithAction

#define RTITest_assertLessOrEqualsUnsignedLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
<=, \
failAction__);

Assert that a given unsigned long long integer (unsigned long long) is less than or equal to another given unsigned long long integer (unsigned long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanUnsignedLongLong

#define RTITest_assertGreaterThanUnsignedLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
>);

Assert that a given unsigned long long integer (unsigned long long) is greater than another given unsigned long long integer (unsigned long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanUnsignedLongLongWithAction

#define RTITest_assertGreaterThanUnsignedLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
>, \
failAction__);

Assert that a given unsigned long long integer (unsigned long long) is greater than another given unsigned long long integer (unsigned long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsUnsignedLongLong

#define RTITest_assertGreaterOrEqualsUnsignedLongLong (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
>=);

Assert that a given unsigned long long integer (unsigned long long) is greater than or equal to another given unsigned long long integer (unsigned long long)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsUnsignedLongLongWithAction

#define RTITest_assertGreaterOrEqualsUnsignedLongLongWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
unsigned long long, \
"%llu", \
>=, \
failAction__);

Assert that a given unsigned long long integer (unsigned long long) is greater than or equal to another given unsigned long long integer (unsigned long long) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsFloat

#define RTITest_assertEqualsFloat (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
float, \
==, \
FLT_EPSILON);

Assert that two given real numbers (float) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsFloatWithAction

#define RTITest_assertEqualsFloatWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
float, \
==, \
FLT_EPSILON, \
failAction__);

Assert that two given real numbers (float) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsFloat

#define RTITest_assertNotEqualsFloat (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
float, \
!=, \
FLT_EPSILON);

Assert that two given real numbers (float) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsFloatWithAction

#define RTITest_assertNotEqualsFloatWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
float, \
!=, \
FLT_EPSILON, \
failAction__);

Assert that two given real numbers (float) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanFloat

#define RTITest_assertLessThanFloat (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
float, \
<, \
FLT_EPSILON);

Assert that a given real number (float) is less than another given real number (float)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanFloatWithAction

#define RTITest_assertLessThanFloatWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
float, \
<, \
FLT_EPSILON, \
failAction__);

Assert that a given real number (float) is less than another given real number (float) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsFloat

#define RTITest_assertLessOrEqualsFloat (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
float, \
<=, \
FLT_EPSILON);

Assert that a given real number (float) is less than or equal to another given real number (float)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsFloatWithAction

#define RTITest_assertLessOrEqualsFloatWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
float, \
<=, \
FLT_EPSILON, \
failAction__);

Assert that a given real number (float) is less than or equal to another given real number (float) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanFloat

#define RTITest_assertGreaterThanFloat (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
float, \
>, \
FLT_EPSILON);

Assert that a given real number (float) is greater than another given real number (float)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanFloatWithAction

#define RTITest_assertGreaterThanFloatWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
float, \
>, \
FLT_EPSILON, \
failAction__);

Assert that a given real number (float) is greater than another given real number (float) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsFloat

#define RTITest_assertGreaterOrEqualsFloat (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
float, \
>=, \
FLT_EPSILON);

Assert that a given real number (float) is greater than or equal to another given real number (float)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsFloatWithAction

#define RTITest_assertGreaterOrEqualsFloatWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
float, \
>=, \
FLT_EPSILON, \
failAction__);

Assert that a given real number (float) is greater than or equal to another given real number (float) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsDouble

#define RTITest_assertEqualsDouble (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
double, \
==, \
DBL_EPSILON);

Assert that two given double precision real numbers (double) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsDoubleWithAction

#define RTITest_assertEqualsDoubleWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
double, \
==, \
DBL_EPSILON, \
failAction__);

Assert that two given double precision real numbers (double) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsDouble

#define RTITest_assertNotEqualsDouble (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
double, \
!=, \
DBL_EPSILON);

Assert that two given double precision real numbers (double) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsDoubleWithAction

#define RTITest_assertNotEqualsDoubleWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
double, \
!=, \
DBL_EPSILON, \
failAction__);

Assert that two given double precision real numbers (double) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanDouble

#define RTITest_assertLessThanDouble (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
double, \
<, \
DBL_EPSILON);

Assert that a given double precision real number (double) is less than another given double precision real number (double)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanDoubleWithAction

#define RTITest_assertLessThanDoubleWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
double, \
<, \
DBL_EPSILON, \
failAction__);

Assert that a given double precision real number (double) is less than another given double precision real number (double) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsDouble

#define RTITest_assertLessOrEqualsDouble (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
double, \
<=, \
DBL_EPSILON);

Assert that a given double precision real number (double) is less than or equal to another given double precision real number (double)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsDoubleWithAction

#define RTITest_assertLessOrEqualsDoubleWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
double, \
<=, \
DBL_EPSILON, \
failAction__);

Assert that a given double precision real number (double) is less than or equal to another given double precision real number (double) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanDouble

#define RTITest_assertGreaterThanDouble (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
double, \
>, \
DBL_EPSILON);

Assert that a given double precision real number (double) is greater than another given double precision real number (double)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanDoubleWithAction

#define RTITest_assertGreaterThanDoubleWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
double, \
>, \
DBL_EPSILON, \
failAction__);

Assert that a given double precision real number (double) is greater than another given double precision real number (double) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsDouble

#define RTITest_assertGreaterOrEqualsDouble (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForFloatingPointType( \
expected__, \
actual__, \
double, \
>=, \
DBL_EPSILON);

Assert that a given double precision real number (double) is greater than or equal to another given double precision real number (double)

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsDoubleWithAction

#define RTITest_assertGreaterOrEqualsDoubleWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForFloatingPointTypeWithAction( \
expected__, \
actual__, \
double, \
>=, \
DBL_EPSILON, \
failAction__);

Assert that a given double precision real number (double) is greater than or equal to another given double precision real number (double) Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsPtr

#define RTITest_assertEqualsPtr (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
void *, \
"%p", \
==);

Assert that two given pointers (void *) are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsPtrWithAction

#define RTITest_assertEqualsPtrWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
void *, \
"%p", \
==, \
failAction__);

Assert that two given pointers (void *) are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsPtr

#define RTITest_assertNotEqualsPtr (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
void *, \
"%p", \
!=);

Assert that two given pointers (void *) are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsPtrWithAction

#define RTITest_assertNotEqualsPtrWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
void *, \
"%p", \
!=, \
failAction__);

Assert that two given pointers (void *) are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertEqualsBoolean

#define RTITest_assertEqualsBoolean   RTITest_assertEqualsUnsignedShort

Assert that two given booleans are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsNumericalChar

#define RTITest_assertEqualsNumericalChar (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
(unsigned char) (expected__), \
(unsigned char) (actual__), \
int, \
"%d", \
==)

Assert that two given numerical chars are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Conversion to int will happen since variadic parameters will be promoted to int in the call to printf as the standard states (argument promotion), so Coverity thinks we are passing a char where an int is expected. Conversion to unsigned char is expected by STR34-C: Cast characters to unsigned char before converting to larger integer sizes.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsSize_t

#define RTITest_assertEqualsSize_t (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
size_t, \
"%zu", \
==);

Assert that two given size_t are equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertEqualsSize_tWithAction

#define RTITest_assertEqualsSize_tWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
size_t, \
"%zu", \
==, \
failAction__);

Assert that two given size_t are equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertNotEqualsSize_t

#define RTITest_assertNotEqualsSize_t (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
size_t, \
"%zu", \
!=);

Assert that two given size_t are not equal.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertNotEqualsSize_tWithAction

#define RTITest_assertNotEqualsSize_tWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
size_t, \
"%zu", \
!=, \
failAction__);

Assert that two given size_t are not equal. Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessThanSize_t

#define RTITest_assertLessThanSize_t (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
size_t, \
"%zu", \
<);

Assert that a given size_t is less than another given size_t.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessThanSize_tWithAction

#define RTITest_assertLessThanSize_tWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
size_t, \
"%zu", \
<, \
failAction__);

Assert that a given size_t is less than another given size_t Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertLessOrEqualsSize_t

#define RTITest_assertLessOrEqualsSize_t (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
size_t, \
"%zu", \
<=);

Assert that a given size_t is less than or equal to another given size_t.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertLessOrEqualsSize_tWithAction

#define RTITest_assertLessOrEqualsSize_tWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
size_t, \
"%zu", \
<=, \
failAction__);

Assert that a given size_t is less than or equal to another given size_t Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterThanSize_t

#define RTITest_assertGreaterThanSize_t (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
size_t, \
"%zu", \
>);

Assert that a given size_t is greater than another given size_t.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterThanSize_tWithAction

#define RTITest_assertGreaterThanSize_tWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
size_t, \
"%zu", \
>, \
failAction__);

Assert that a given size_t is greater than another given size_t Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.

◆ RTITest_assertGreaterOrEqualsSize_t

#define RTITest_assertGreaterOrEqualsSize_t (   expected__,
  actual__ 
)
Value:
RTITest_assertComparisonForType( \
expected__, \
actual__, \
size_t, \
"%zu", \
>=);

Assert that a given size_t is greater than or equal to another given size_t.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.

Calls goto done if the assertion fails. Therefore, this macro requires a done label to be defined in the method that this assertion is called in.

◆ RTITest_assertGreaterOrEqualsSize_tWithAction

#define RTITest_assertGreaterOrEqualsSize_tWithAction (   expected__,
  actual__,
  failAction__ 
)
Value:
RTITest_assertComparisonForTypeWithAction( \
expected__, \
actual__, \
size_t, \
"%zu", \
>=, \
failAction__);

Assert that a given size_t is greater than or equal to another given size_t Otherwise, run the given action.

Parameters
expected__In. Expected value of the variable.
actual__In. Actual value of the variable.
failAction__In. Action to be run if the assertion fails.