You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manual.markdown
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,8 +138,8 @@ The failure of one of these macros causes the current test to immediately exit:
138
138
* CHECK(boolean condition) - checks any boolean result.
139
139
* CHECK_TEXT(boolean condition, text) - checks any boolean result and prints text on failure.
140
140
* CHECK_FALSE(condition) - checks any boolean result
141
-
* CHECK_FALSE_TEXT(condition, text) - checks any boolean result and prints text on failure.
142
141
* CHECK_EQUAL(expected, actual) - checks for equality between entities using ==. So if you have a class that supports operator==() you can use this macro to compare two instances. You will also need to add a StringFrom() function like those found in SimpleString. This is for printing the objects when the check failed.
142
+
* CHECK_COMPARE(first, relop, second) - checks thats a relational operator holds between two entities. On failure, prints what both operands evaluate to.
143
143
* CHECK_THROWS(expected_exception, expression) - checks if expression throws expected_exception (e.g. std::exception). CHECK_THROWS is only available if CppUTest is built with the Standard C++ Library (default).
144
144
* STRCMP_EQUAL(expected, actual) - checks const char* strings for equality using strcmp().
145
145
* STRNCMP_EQUAL(expected, actual, length) - checks const char* strings for equality using strncmp().
@@ -150,12 +150,12 @@ The failure of one of these macros causes the current test to immediately exit:
150
150
* BYTES_EQUAL(expected, actual) - compares two numbers, eight bits wide.
151
151
* POINTERS_EQUAL(expected, actual) - compares two pointers.
152
152
* DOUBLES_EQUAL(expected, actual, tolerance) - compares two floating point numbers within some tolerance
153
-
*FUNCTIONPOINTERS_EQUAL_TEXT(expected, actual, text) - compares two void (*)() function pointers
153
+
*FUNCTIONPOINTERS_EQUAL(expected, actual) - compares two void (*)() function pointers
154
154
* MEMCMP_EQUAL(expected, actual, size) - compares two areas of memory
155
155
* BITS_EQUAL(expected, actual, mask) - compares expected to actual bit by bit, applying mask
156
156
* FAIL(text) - always fails
157
157
158
-
*NOTE*Many macros have _TEXT() equivalents, which are not explicitly listed here.
158
+
*NOTE*Most macros have _TEXT() equivalents like CHECK_TEXT(), which are not explicitly listed here.
0 commit comments