issues
search
cpp-testing
/
GUnit
GUnit - Google.Test/Google.Mock/Cucumber on steroids
263
stars
53
forks
source link
:sparkles: enable support for logical expressions in EXPECT and ASSERT
#98
Closed
dustingooding
closed
2 weeks ago
dustingooding
commented
2 weeks ago
Problem:
logical expressions fail in
EXPECT()
and
ASSERT()
because of operator precedence
Solution:
wrap
__VA_ARGS__
use in macros with an extra set of parens
Problem:
EXPECT()
andASSERT()
because of operator precedenceSolution:
__VA_ARGS__
use in macros with an extra set of parens