Skip to content

Commit

Permalink
fix CHECK_EQUAL
Browse files Browse the repository at this point in the history
  • Loading branch information
truher committed Dec 8, 2024
1 parent 557d7d5 commit 947f5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CppUnitLite/Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Test
result_.addFailure(Failure(name_, __FILE__, __LINE__, #expected, #actual)); }

#define CHECK_EQUAL(expected,actual)\
{ if ((expected) == (actual)) return; result_.addFailure(Failure(name_, __FILE__, __LINE__, std::to_string(expected), std::to_string(actual))); }
{ if (!((expected) == (actual))) { result_.addFailure(Failure(name_, __FILE__, __LINE__, std::to_string(expected), std::to_string(actual))); } }

#define LONGS_EQUAL(expected,actual)\
{ long actualTemp = actual; \
Expand Down

0 comments on commit 947f5b1

Please sign in to comment.