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
TEST_CASE(name) ends with a semicolon, which means that if you use it like this:
TEST_CASE(x == 1);
The compiler complains about an empty statement (caused by the redundant semicolon). This can also lead to surprises if this is used in contexts without enclosing braces, so it's not recommended.
Simple solution is just to elide the trailing semicolon.
PR with this is on the way.
The text was updated successfully, but these errors were encountered:
gdamore
added a commit
to gdamore/acutest
that referenced
this issue
Dec 28, 2019
Clang-Tidy found this.
TEST_CASE(name) ends with a semicolon, which means that if you use it like this:
TEST_CASE(x == 1);
The compiler complains about an empty statement (caused by the redundant semicolon). This can also lead to surprises if this is used in contexts without enclosing braces, so it's not recommended.
Simple solution is just to elide the trailing semicolon.
PR with this is on the way.
The text was updated successfully, but these errors were encountered: