From 115db71bab371c610f58b8eed1095247a1778bf6 Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 31 Aug 2017 16:14:27 +0100 Subject: [PATCH] Incorporated Clara with TextFlow fix for assertion with consecutive newlines fixes #1012 --- 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