Fix tests
This commit is contained in:
@@ -55,6 +55,7 @@ void TestWildcardMatcher::testMatcher()
|
||||
|
||||
initMatcher(text);
|
||||
verifyMatchResult(pattern, match);
|
||||
cleanupMatcher();
|
||||
}
|
||||
|
||||
void TestWildcardMatcher::initMatcher(QString text)
|
||||
@@ -62,6 +63,11 @@ void TestWildcardMatcher::initMatcher(QString text)
|
||||
m_matcher = new WildcardMatcher(text);
|
||||
}
|
||||
|
||||
void TestWildcardMatcher::cleanupMatcher()
|
||||
{
|
||||
delete m_matcher;
|
||||
}
|
||||
|
||||
void TestWildcardMatcher::verifyMatchResult(QString pattern, bool expected)
|
||||
{
|
||||
if (expected) {
|
||||
|
||||
Reference in New Issue
Block a user