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
+16-5Lines changed: 16 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,15 +137,26 @@ The failure of one of these macros causes the current test to immediately exit:
137
137
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
+
* CHECK_FALSE(condition) - checks any boolean result
141
+
* CHECK_FALSE_TEXT(condition, text) - checks any boolean result and prints text on failure.
140
142
* 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.
141
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).
142
-
* STRCMP_EQUAL(expected, actual) - check const char* strings for equality using strcmp().
143
-
* LONGS_EQUAL(expected, actual) - Compares two numbers.
144
-
* BYTES_EQUAL(expected, actual) - Compares two numbers, eight bits wide.
145
-
* POINTERS_EQUAL(expected, actual) - Compares two pointers.
146
-
* DOUBLES_EQUAL(expected, actual, tolerance) - Compares two doubles within some tolerance
144
+
* STRCMP_EQUAL(expected, actual) - checks const char* strings for equality using strcmp().
145
+
* STRNCMP_EQUAL(expected, actual, length) - checks const char* strings for equality using strncmp().
146
+
* STRCMP_NOCASE_EQUAL(expected, actual) - checks const char* strings for equality, not considering case.
0 commit comments