Don't insert the foo part of [.foo] tag twice when parsing test spec

This commit is contained in:
Martin Hořeňovský 2023-02-13 22:16:50 +01:00
parent e8ba329b6c
commit 6135a78c31
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -221,10 +221,8 @@ namespace Catch {
token.erase(token.begin());
if (m_exclusion) {
m_currentFilter.m_forbidden.emplace_back(Detail::make_unique<TestSpec::TagPattern>(".", m_substring));
m_currentFilter.m_forbidden.emplace_back(Detail::make_unique<TestSpec::TagPattern>(token, m_substring));
} else {
m_currentFilter.m_required.emplace_back(Detail::make_unique<TestSpec::TagPattern>(".", m_substring));
m_currentFilter.m_required.emplace_back(Detail::make_unique<TestSpec::TagPattern>(token, m_substring));
}
}
if (m_exclusion) {