Progmasoft Git

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

Incorporated Clara with TextFlow fix for assertion with consecutive newlines

fixes #1012
Commit
115db71bab371c610f58b8eed1095247a1778bf6
Author
Phil Nash ·
Parents
3a5b9512562f

Files · Download .tar.gz

Changes

 include/external/clara.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/external/clara.hpp b/include/external/clara.hpp
index 091c2fa8..4abcd16f 100644
--- a/include/external/clara.hpp
+++ b/include/external/clara.hpp
@@ -135,7 +135,7 @@ namespace Catch { namespace clara { namespace TextFlow {
 
             auto operator *() const -> std::string {
                 assert( m_stringIndex < m_column.m_strings.size() );
-                assert( m_pos < m_end );
+                assert( m_pos <= m_end );
                 if( m_pos + m_column.m_width < m_end )
                     return addIndentAndSuffix(line().substr(m_pos, m_len));
                 else