Skip to content

Commit 0b1ec2c

Browse files
committed
s/ones/once/
1 parent d3c8fb7 commit 0b1ec2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manual.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ The failure of one of these macros causes the current test to immediately exit:
150150

151151
*CHECK_EQUAL Warning:*
152152

153-
CHECK_EQUAL(expected, actual) can produce misleading error reports as it will evaluate expected and actual more than ones. This especially leads to confusions when used with mocks. This happens if the mock function expects to be called exactly once, since the macro needs to evaluate the actual expression more than once. The problem does not occur with type specific checks (e.g. LONGS_EQUAL()), so it is recommended to use them if possible. Instead of:
153+
CHECK_EQUAL(expected, actual) can produce misleading error reports as it will evaluate expected and actual more than once. This especially leads to confusions when used with mocks. This happens if the mock function expects to be called exactly once, since the macro needs to evaluate the actual expression more than once. The problem does not occur with type specific checks (e.g. LONGS_EQUAL()), so it is recommended to use them if possible. Instead of:
154154

155155
{% highlight c++ %}
156156
CHECK_EQUAL(10, mock_returning_11())

0 commit comments

Comments
 (0)