We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When the length of stringified lhs and rhs of an expression is more than 40 characters it gets split due to
Catch2/include/internal/catch_decomposer.cpp
Line 17 in 9fb38fc
Expected behavior Split according to CATCH_CONFIG_CONSOLE_WIDTH instead of 40.
Reproduction steps Code:
TEST_CASE( "BreakingLine" ) { CHECK( 100000000000 == 9999999 ); }
Produces:
xxx.cpp(yy): FAILED: CHECK( 100000000000 == 9999999 ) with expansion: 100000000000 (0x174876e800) == 9999999 (0x98967f)
But with CATCH_CONFIG_CONSOLE_WIDTH set to 200 the expected output would be:
Platform information:
Additional context Replacing 40 with e.g. (CATCH_CONFIG_CONSOLE_WIDTH - 2 - <current_indent>) is a potential fix.
40
(CATCH_CONFIG_CONSOLE_WIDTH - 2 - <current_indent>)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When the length of stringified lhs and rhs of an expression is more than 40 characters it gets split due to
Catch2/include/internal/catch_decomposer.cpp
Line 17 in 9fb38fc
Expected behavior
Split according to CATCH_CONFIG_CONSOLE_WIDTH instead of 40.
Reproduction steps
Code:
Produces:
But with CATCH_CONFIG_CONSOLE_WIDTH set to 200 the expected output would be:
Platform information:
Additional context
Replacing
40
with e.g.(CATCH_CONFIG_CONSOLE_WIDTH - 2 - <current_indent>)
is a potential fix.The text was updated successfully, but these errors were encountered: