Fix tests

This commit is contained in:
Josef Vitu
2016-10-28 18:49:51 +02:00
parent 82ace81974
commit ad36ec4dfd
6 changed files with 22 additions and 4 deletions

View File

@@ -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) {