mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-05 08:05:21 -04:00
Fix tests
This commit is contained in:
parent
82ace81974
commit
ad36ec4dfd
6 changed files with 22 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue