Skip to content

✨ enable support for logical expressions in EXPECT and ASSERT - #98

Merged
kris-jusiak merged 1 commit into
cpp-testing:masterfrom
dustingooding:false-or-true
Nov 15, 2024
Merged

✨ enable support for logical expressions in EXPECT and ASSERT#98
kris-jusiak merged 1 commit into
cpp-testing:masterfrom
dustingooding:false-or-true

Conversation

@dustingooding

@dustingoodingdustingooding commented Nov 15, 2024

Copy link
Copy Markdown
Contributor

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:
- logical expressions fail in EXPECT() and ASSERT() because of
operator precedence
Solution:
- wrap __VA_ARGS__ use in macros with an extra set of parens
@kris-jusiak
kris-jusiak merged commit 9872bc3 into cpp-testing:masterNov 15, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@dustingooding@kris-jusiak