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
You will need to wrap the expression in extra round braces like REQUIRE((cond ? true : false)) to make that work. The issue is that doctest uses a bunch of templates to decompose expressions so it is able to extract the left and right hand side of comparisons such as a == b.
I'll keep this issue open just to investigate if there is anything that could be done in the future, but I might just close it at some point.
Description
Conditional expression seems not be supported for
REQUIRE(..)
andREQUIRE_FALSE(..)
.A simple example:
Compiler output:
Is it possible to add support for conditional expressions?
Extra information
The text was updated successfully, but these errors were encountered: