Next: , Previous: , Up: assertions equality   [Contents][Index]


6.3.6 Expecting 8-bit integers

Preprocessor Macro: void cctests_assert_equal_int8 (cce_destination_t L, int8_t expected, int8_t result)
Preprocessor Macro: void cctests_assert_equal_int8 (cce_destination_t L, int8_t expected, int8_t result, char const * message, …)

Assert that expected equals result. If the values are equal: just return. Otherwise raise an exception of type cctests_condition_assertion_expected_int8_t by performing a non–local exit to L.

When the optional argument message and the following arguments are used: a dynamically allocated string is formatted using message as template and printf() format specifiers; this string is used as description message for the assertion violation.

Preprocessor Macro: void cctests_assert_equal_uint8 (cce_destination_t L, uint8_t expected, uint8_t result)
Preprocessor Macro: void cctests_assert_equal_uint8 (cce_destination_t L, uint8_t expected, uint8_t result, char const * message, …)

Assert that expected equals result. If the values are equal: just return. Otherwise raise an exception of type cctests_condition_assertion_expected_uint8_t by performing a non–local exit to L.

When the optional argument message and the following arguments are used: a dynamically allocated string is formatted using message as template and printf() format specifiers; this string is used as description message for the assertion violation.


Next: , Previous: , Up: assertions equality   [Contents][Index]

This document describes version 0.4.1-devel.1 of CCTests.