catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Restored description field in SectionInfo for now - but marked it deprecated
- Commit
9fb38fcc1413103d03c72b6a281351ba2a57b2be- Author
- Phil Nash ·
- Parents
0f49a600b099
Changes
examples/210-Evt-EventListeners.cpp | 3 +-- include/internal/catch_section_info.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/210-Evt-EventListeners.cpp b/examples/210-Evt-EventListeners.cpp index d1df6b7b..7df93d71 100644 --- a/examples/210-Evt-EventListeners.cpp +++ b/examples/210-Evt-EventListeners.cpp @@ -187,8 +187,7 @@ void print( std::ostream& os, int const level, std::string const& title, Catch:: void print( std::ostream& os, int const level, std::string const& title, Catch::SectionInfo const& info ) { os << ws(level ) << title << ":\n" - << ws(level+1) << "- name: " << info.name << "\n" - << ws(level+1) << "- description: '" << info.description << "'\n"; + << ws(level+1) << "- name: " << info.name << "\n"; print( os, level+1 , "- lineInfo", info.lineInfo ); } diff --git a/include/internal/catch_section_info.h b/include/internal/catch_section_info.h index 832ed7d9..9cf792e8 100644 --- a/include/internal/catch_section_info.h +++ b/include/internal/catch_section_info.h @@ -27,6 +27,7 @@ namespace Catch { std::string const& ) : SectionInfo( _lineInfo, _name ) {} std::string name; + std::string description; // !Deprecated: this will always be empty SourceLineInfo lineInfo; };