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


6.3.4 Expecting long integers

Preprocessor Macro: void cctests_assert_equal_long (cce_destination_t L, signed long expected, signed long result)
Preprocessor Macro: void cctests_assert_equal_long (cce_destination_t L, signed long expected, signed long 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_long_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_ulong (cce_destination_t L, unsigned long expected, unsigned long result)
Preprocessor Macro: void cctests_assert_equal_ulong (cce_destination_t L, unsigned long expected, unsigned long 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_ulong_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.