mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Don't insert the foo part of [.foo] tag twice when parsing test spec
This commit is contained in:
parent
e8ba329b6c
commit
6135a78c31
@ -221,10 +221,8 @@ namespace Catch {
|
|||||||
token.erase(token.begin());
|
token.erase(token.begin());
|
||||||
if (m_exclusion) {
|
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>(".", m_substring));
|
||||||
m_currentFilter.m_forbidden.emplace_back(Detail::make_unique<TestSpec::TagPattern>(token, m_substring));
|
|
||||||
} else {
|
} 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>(".", m_substring));
|
||||||
m_currentFilter.m_required.emplace_back(Detail::make_unique<TestSpec::TagPattern>(token, m_substring));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (m_exclusion) {
|
if (m_exclusion) {
|
||||||
|
Loading…
Reference in New Issue
Block a user