mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Update card type FilterString unit tests
This commit is contained in:
parent
c969aab7c3
commit
eae9a21154
2 changed files with 22 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
<colors>G</colors>
|
<colors>G</colors>
|
||||||
<manacost>2G</manacost>
|
<manacost>2G</manacost>
|
||||||
<cmc>2</cmc>
|
<cmc>2</cmc>
|
||||||
<type>Creature</type>
|
<type>Creature — Cat</type>
|
||||||
<maintype>Creature</maintype>
|
<maintype>Creature</maintype>
|
||||||
<pt>3/3</pt>
|
<pt>3/3</pt>
|
||||||
</prop>
|
</prop>
|
||||||
|
|
@ -26,7 +26,22 @@
|
||||||
<colors>R</colors>
|
<colors>R</colors>
|
||||||
<manacost>2RR</manacost>
|
<manacost>2RR</manacost>
|
||||||
<cmc>4</cmc>
|
<cmc>4</cmc>
|
||||||
<type>Creature</type>
|
<type>Creature — Dog</type>
|
||||||
|
<maintype>Creature</maintype>
|
||||||
|
<pt>4/4</pt>
|
||||||
|
</prop>
|
||||||
|
</card>
|
||||||
|
<card>
|
||||||
|
<name>Doctor</name>
|
||||||
|
<set>WHO</set>
|
||||||
|
<tablerow>0</tablerow>
|
||||||
|
<text>Why did wizards introduce two-word creature types</text>
|
||||||
|
<prop>
|
||||||
|
<muid>222</muid>
|
||||||
|
<colors>R</colors>
|
||||||
|
<manacost>2RR</manacost>
|
||||||
|
<cmc>4</cmc>
|
||||||
|
<type>Creature — Human Time Lord Doctor</type>
|
||||||
<maintype>Creature</maintype>
|
<maintype>Creature</maintype>
|
||||||
<pt>4/4</pt>
|
<pt>4/4</pt>
|
||||||
</prop>
|
</prop>
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,14 @@ protected:
|
||||||
cat = CardDatabaseManager::getInstance()->getCardBySimpleName("Cat");
|
cat = CardDatabaseManager::getInstance()->getCardBySimpleName("Cat");
|
||||||
notDeadAfterAll = CardDatabaseManager::getInstance()->getCardBySimpleName("Not Dead");
|
notDeadAfterAll = CardDatabaseManager::getInstance()->getCardBySimpleName("Not Dead");
|
||||||
truth = CardDatabaseManager::getInstance()->getCardBySimpleName("Truth");
|
truth = CardDatabaseManager::getInstance()->getCardBySimpleName("Truth");
|
||||||
|
doctor = CardDatabaseManager::getInstance()->getCardBySimpleName("Doctor");
|
||||||
}
|
}
|
||||||
// void TearDown() override {}
|
// void TearDown() override {}
|
||||||
|
|
||||||
CardData cat;
|
CardData cat;
|
||||||
CardData notDeadAfterAll;
|
CardData notDeadAfterAll;
|
||||||
CardData truth;
|
CardData truth;
|
||||||
|
CardData doctor;
|
||||||
};
|
};
|
||||||
|
|
||||||
QUERY(Empty, cat, "", true)
|
QUERY(Empty, cat, "", true)
|
||||||
|
|
@ -34,6 +36,9 @@ QUERY(Typing, cat, "t", true)
|
||||||
|
|
||||||
QUERY(NonMatchingType, cat, "t:kithkin", false)
|
QUERY(NonMatchingType, cat, "t:kithkin", false)
|
||||||
QUERY(MatchingType, cat, "t:creature", true)
|
QUERY(MatchingType, cat, "t:creature", true)
|
||||||
|
QUERY(MatchingCreatureType, cat, "t:cat", true)
|
||||||
|
QUERY(PartialMatchingType, cat, "t:ca", false)
|
||||||
|
QUERY(MatchingMultiWordType, doctor, "t:\"Time Lord\"", true)
|
||||||
QUERY(Not1, cat, "NOT t:kithkin", true)
|
QUERY(Not1, cat, "NOT t:kithkin", true)
|
||||||
QUERY(Not2, cat, "NOT t:creature", false)
|
QUERY(Not2, cat, "NOT t:creature", false)
|
||||||
QUERY(NonKeyword1, cat, "not t:kithkin", false)
|
QUERY(NonKeyword1, cat, "not t:kithkin", false)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue