Fix test tag parsing to split [.foo] into [.][foo]

This commit is contained in:
Martin Hořeňovský 2019-03-29 10:48:56 +01:00
parent 54089c4c8c
commit b77cec05c0
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
8 changed files with 76 additions and 41 deletions

View file

@ -75,6 +75,12 @@ namespace Catch {
else if( prop == TestCaseInfo::None )
enforceNotReservedTag( tag, _lineInfo );
// Merged hide tags like `[.approvals]` should be added as
// `[.][approvals]`. The `[.]` is added at later point, so
// we only strip the prefix
if (startsWith(tag, '.') && tag.size() > 1) {
tag.erase(0, 1);
}
tags.push_back( tag );
tag.clear();
inTag = false;