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
Embed Clara with TextFlow fix for whitespace after newline
- Commit
5c3355ad1b6d5ed57df7f0da73dfe086500a4ef2- Author
- Phil Nash ·
- Parents
b2a4dfcda41c
Changes
include/external/clara.hpp | 6 +++--- third_party/clara.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/external/clara.hpp b/include/external/clara.hpp index 189e16e2..091c2fa8 100644 --- a/include/external/clara.hpp +++ b/include/external/clara.hpp @@ -146,9 +146,9 @@ namespace Catch { namespace clara { namespace TextFlow { m_pos += m_len; if( m_pos < line().size() && line()[m_pos] == '\n' ) m_pos += 1; - - while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) - ++m_pos; + else + while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) + ++m_pos; if( m_pos == line().size() ) { m_pos = 0; diff --git a/third_party/clara.hpp b/third_party/clara.hpp index 0cd00b94..509c9b5a 100644 --- a/third_party/clara.hpp +++ b/third_party/clara.hpp @@ -144,9 +144,9 @@ namespace clara { namespace TextFlow { m_pos += m_len; if( m_pos < line().size() && line()[m_pos] == '\n' ) m_pos += 1; - - while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) - ++m_pos; + else + while( m_pos < line().size() && isWhitespace( line()[m_pos] ) ) + ++m_pos; if( m_pos == line().size() ) { m_pos = 0;