Skip to content

Commit

Permalink
Fixed typo in "benchmark name" column width calculation. Closes #1885.
Browse files Browse the repository at this point in the history
  • Loading branch information
uckelman-sf authored and horenmar committed Mar 26, 2020
1 parent 255aa5f commit e5c9a58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/reporters/catch_reporter_console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ ConsoleReporter::ConsoleReporter(ReporterConfig const& config)
else
{
return{
{ "benchmark name", CATCH_CONFIG_CONSOLE_WIDTH - 32, ColumnInfo::Left },
{ "benchmark name", CATCH_CONFIG_CONSOLE_WIDTH - 43, ColumnInfo::Left },
{ "samples mean std dev", 14, ColumnInfo::Right },
{ "iterations low mean low std dev", 14, ColumnInfo::Right },
{ "estimated high mean high std dev", 14, ColumnInfo::Right }
Expand Down
2 changes: 1 addition & 1 deletion projects/ExtraTests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ add_test(NAME BenchmarkingMacros COMMAND BenchmarkingMacros -r console -s)
set_tests_properties(
BenchmarkingMacros
PROPERTIES
PASS_REGULAR_EXPRESSION "benchmark name samples iterations estimated"
PASS_REGULAR_EXPRESSION "benchmark name[\\r\\n\\t ]+samples[\\r\\n\\t ]+iterations[\\r\\n\\t ]+estimated"
)

# This test touches windows.h, so it should only be compiled under msvc
Expand Down

0 comments on commit e5c9a58

Please sign in to comment.