From 380f98ed1fd409beec07a1f65bd6774f3fa50b4c Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Thu, 17 Oct 2013 22:45:21 +0100 Subject: [PATCH] Regenerated single include --- README.md | 2 +- include/internal/catch_version.hpp | 2 +- single_include/catch.hpp | 32 ++++++++++++++++++------------ 3 files changed, 21 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 402c21c..6a18878 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ![catch logo](catch-logo-small.png) -*v1.0 build 10 (master branch)* +*v1.0 build 11 (master branch)* # New release with significant changes diff --git a/include/internal/catch_version.hpp b/include/internal/catch_version.hpp index 622709d..4b02171 100644 --- a/include/internal/catch_version.hpp +++ b/include/internal/catch_version.hpp @@ -13,7 +13,7 @@ namespace Catch { // These numbers are maintained by a script - Version libraryVersion( 1, 0, 10, "master" ); + Version libraryVersion( 1, 0, 11, "master" ); } #endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED diff --git a/single_include/catch.hpp b/single_include/catch.hpp index dba2e30..144dab5 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -1,6 +1,6 @@ /* - * CATCH v1.0 build 10 (master branch) - * Generated: 2013-09-21 19:07:52.759646 + * CATCH v1.0 build 11 (master branch) + * Generated: 2013-10-17 22:42:24.922987 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. @@ -1753,9 +1753,10 @@ namespace Catch { } bool matches( std::set const& tags ) const { - TagMap::const_iterator it = m_tags.begin(); - TagMap::const_iterator itEnd = m_tags.end(); - for(; it != itEnd; ++it ) { + for( TagMap::const_iterator + it = m_tags.begin(), itEnd = m_tags.end(); + it != itEnd; + ++it ) { bool found = tags.find( it->first ) != tags.end(); if( found == it->second.isNegated() ) return false; @@ -1770,9 +1771,10 @@ namespace Catch { class TagExpression { public: bool matches( std::set const& tags ) const { - std::vector::const_iterator it = m_tagSets.begin(); - std::vector::const_iterator itEnd = m_tagSets.end(); - for(; it != itEnd; ++it ) + for( std::vector::const_iterator + it = m_tagSets.begin(), itEnd = m_tagSets.end(); + it != itEnd; + ++it ) if( it->matches( tags ) ) return true; return false; @@ -1805,6 +1807,7 @@ namespace Catch { break; case ',': m_exp.m_tagSets.push_back( m_currentTagSet ); + m_currentTagSet = TagSet(); break; } } @@ -4598,7 +4601,7 @@ namespace Catch { matchedTests++; Text nameWrapper( it->getTestCaseInfo().name, TextAttributes() - .setWidth( maxNameLen ) + .setWidth( maxNameLen+2 ) .setInitialIndent(2) .setIndent(4) ); @@ -6368,7 +6371,7 @@ namespace Catch { namespace Catch { // These numbers are maintained by a script - Version libraryVersion( 1, 0, 10, "master" ); + Version libraryVersion( 1, 0, 11, "master" ); } // #included from: catch_text.hpp @@ -6389,7 +6392,10 @@ namespace Catch { std::string remainder = _str; while( !remainder.empty() ) { - assert( lines.size() < 1000 ); + if( lines.size() >= 1000 ) { + lines.push_back( "... message truncated due to excessive size" ); + return; + } std::size_t tabPos = std::string::npos; std::size_t width = (std::min)( remainder.size(), _attr.width - indent ); std::size_t pos = remainder.find_first_of( '\n' ); @@ -6703,9 +6709,9 @@ namespace Catch { } #define INTERNAL_CATCH_REGISTER_LEGACY_REPORTER( name, reporterType ) \ - Catch::LegacyReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::LegacyReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } #define INTERNAL_CATCH_REGISTER_REPORTER( name, reporterType ) \ - Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); + namespace{ Catch::ReporterRegistrar catch_internal_RegistrarFor##reporterType( name ); } // #included from: ../internal/catch_xmlwriter.hpp #define TWOBLUECUBES_CATCH_XMLWRITER_HPP_INCLUDED