Skip to content

Commit 0aab0cd

Browse files
authored
Merge pull request cpputest#38 from dlindelof/CHECK_COMPARE
Documentation for CHECK_COMPARE()
2 parents a31e1e9 + b4081dd commit 0aab0cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manual.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ The failure of one of these macros causes the current test to immediately exit:
138138
* CHECK(boolean condition) - checks any boolean result.
139139
* CHECK_TEXT(boolean condition, text) - checks any boolean result and prints text on failure.
140140
* CHECK_FALSE(condition) - checks any boolean result
141-
* CHECK_FALSE_TEXT(condition, text) - checks any boolean result and prints text on failure.
142141
* 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.
143143
* 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).
144144
* STRCMP_EQUAL(expected, actual) - checks const char* strings for equality using strcmp().
145145
* 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:
150150
* BYTES_EQUAL(expected, actual) - compares two numbers, eight bits wide.
151151
* POINTERS_EQUAL(expected, actual) - compares two pointers.
152152
* 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
154154
* MEMCMP_EQUAL(expected, actual, size) - compares two areas of memory
155155
* BITS_EQUAL(expected, actual, mask) - compares expected to actual bit by bit, applying mask
156156
* FAIL(text) - always fails
157157

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.
159159

160160
<a id="setup_teardown"> </a>
161161

0 commit comments

Comments
 (0)