changed test card search from real cards to fake and added cards

This commit is contained in:
Lily 2025-04-09 20:45:32 -04:00
parent 0a4b5ae3dd
commit e1125124f2
No known key found for this signature in database
GPG key ID: D916CEDDF4F93CE7
2 changed files with 29 additions and 3 deletions

View file

@ -31,5 +31,31 @@
<pt>4/4</pt>
</prop>
</card>
<card>
<name>Not Dead</name>
<set> Not a Card</set>
<tablerow>0</tablerow>
<text>Dead!</text>
<prop>
<muid>333</muid>
<colors>B</colors>
<manacost>B</manacost>
<cmc>1</cmc>
<maintype>Instant</maintype>
</prop>
</card>
<card>
<name>Truth or Trail</name>
<set> Not a Card</set>
<tablerow>0</tablerow>
<text>Truth!</text>
<prop>
<muid>444</muid>
<colors>U</colors>
<manacost>2U</manacost>
<cmc>2</cmc>
<maintype>Instant</maintype>
</prop>
</card>
</cards>
</cockatrice_carddatabase>

View file

@ -19,7 +19,7 @@ protected:
void SetUp() override
{
cat = CardDatabaseManager::getInstance()->getCardBySimpleName("Cat");
notDeadAfterAll = CardDatabaseManager::getInstance()->getCardBySimpleName("Not Dead After All");
notDeadAfterAll = CardDatabaseManager::getInstance()->getCardBySimpleName("Not Dead");
truth = CardDatabaseManager::getInstance()->getCardBySimpleName("Truth");
}
}
@ -37,8 +37,8 @@ QUERY(Not1, cat, "NOT t:kithkin", true)
QUERY(Not2, cat, "NOT t:creature", false)
QUERY(NonKeyword1, cat, "not t:kithkin", false)
QUERY(NonKeyword2, cat, "t:bat or t:creature", false)
QUERY(NonKeyword3, notDeadAfterAll, "not dead after all", true)
QUERY(NonKeyword4, truth, "truth or tale", false)
QUERY(NonKeyword3, notDeadAfterAll, "not dead", true)
QUERY(NonKeyword4, truth, "truth or trail", false)
QUERY(Case, cat, "t:cReAtUrE", true)
QUERY(And, cat, "t:creature t:creature", true)