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
Will only print "a" and not "aa". Catch (with SECTION) executes correctly both sections.
This makes a big difference when you are using SUBCASE in a macro. In which case, you'll have several SUBCASE per line once the preprocessor is done. I'm using this to create templated test case. This work well with Catch, but does not work with doctest.
This probably comes from the fact that pairs of files and lines are stored in subcasesPassed instead of triple of files, lines and names.
The text was updated successfully, but these errors were encountered:
yes - that is the reason - I will add the name of the macro too - but even then It might fail when no name is given - but still it would be better than now. Thanks!
I found an important difference with Catch: Only one SUBCASE per line is executed.
For instance, this test case:
Will only print "a" and not "aa". Catch (with SECTION) executes correctly both sections.
This makes a big difference when you are using SUBCASE in a macro. In which case, you'll have several SUBCASE per line once the preprocessor is done. I'm using this to create templated test case. This work well with Catch, but does not work with doctest.
This probably comes from the fact that pairs of files and lines are stored in subcasesPassed instead of triple of files, lines and names.
The text was updated successfully, but these errors were encountered: