diff options
| author | Phil Nash | 2014-12-15 07:26:31 +0000 |
|---|---|---|
| committer | Phil Nash | 2014-12-15 07:26:31 +0000 |
| commit | 91c17f34ebf01fa6320bfdb77d1eda693fd5de60 (patch) | |
| tree | 8e38de756e6258186513e6e334835af33ecda865 | |
| parent | 7e1f21b3340961aeafffa4a8b05ef2b4fe31cf09 (diff) | |
| download | catch3-91c17f34ebf01fa6320bfdb77d1eda693fd5de60.tar.gz | |
build 9
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | include/internal/catch_version.hpp | 2 | ||||
| -rw-r--r-- | single_include/catch.hpp | 23 |
3 files changed, 14 insertions, 13 deletions
@@ -1,6 +1,6 @@  -*v1.1 build 8 (develop branch)* +*v1.1 build 9 (develop branch)* Build status (on Travis CI) [](https://travis-ci.org/philsquared/Catch) diff --git a/include/internal/catch_version.hpp b/include/internal/catch_version.hpp index 19c26294..e0794fad 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, 1, 8, "develop" ); + Version libraryVersion( 1, 1, 9, "develop" ); } #endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED diff --git a/single_include/catch.hpp b/single_include/catch.hpp index 05694b45..0f840bc9 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -1,6 +1,6 @@ /* - * CATCH v1.1 build 8 (develop branch) - * Generated: 2014-12-12 08:10:57.025852 + * CATCH v1.1 build 9 (develop branch) + * Generated: 2014-12-15 07:26:07.689692 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reserved. @@ -6489,7 +6489,7 @@ namespace Catch { namespace Catch { inline TestCaseInfo::SpecialProperties parseSpecialTag( std::string const& tag ) { - if( tag == "." || + if( startsWith( tag, "." ) || tag == "hide" || tag == "!hide" ) return TestCaseInfo::IsHidden; @@ -6503,7 +6503,7 @@ namespace Catch { return TestCaseInfo::None; } inline bool isReservedTag( std::string const& tag ) { - return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !isalnum( tag[0] ); + return TestCaseInfo::None && tag.size() > 0 && !isalnum( tag[0] ); } inline void enforceNotReservedTag( std::string const& tag, SourceLineInfo const& _lineInfo ) { if( isReservedTag( tag ) ) { @@ -6543,14 +6543,15 @@ namespace Catch { } else { if( c == ']' ) { - enforceNotReservedTag( tag, _lineInfo ); - - inTag = false; - if( tag == "hide" || tag == "." ) + TestCaseInfo::SpecialProperties prop = parseSpecialTag( tag ); + if( prop == TestCaseInfo::IsHidden ) isHidden = true; - else - tags.insert( tag ); + else if( prop == TestCaseInfo::None ) + enforceNotReservedTag( tag, _lineInfo ); + + tags.insert( tag ); tag.clear(); + inTag = false; } else tag += c; @@ -6668,7 +6669,7 @@ namespace Catch { namespace Catch { // These numbers are maintained by a script - Version libraryVersion( 1, 1, 8, "develop" ); + Version libraryVersion( 1, 1, 9, "develop" ); } // #included from: catch_message.hpp |