mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 07:22:16 -07:00
implement test case for cards with keyword in name
This commit is contained in:
parent
c831efae6e
commit
7976b106b7
1 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ protected:
|
|||
void SetUp() override
|
||||
{
|
||||
cat = CardDatabaseManager::getInstance()->getCardBySimpleName("Cat");
|
||||
notDeadAfterAll = CardDatabaseManager::getInstance()->getCardBySimpleName("Not Dead After All");
|
||||
truthOrTale = CardDatabaseManager::getInstance()->getCardBySimpleName("Truth or Tale");
|
||||
}
|
||||
}
|
||||
|
||||
// void TearDown() override {}
|
||||
|
|
@ -35,6 +38,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, "t:instant c:b", true)
|
||||
QUERY(NonKeyword4, truthOrTale, "t:instant c:u", true)
|
||||
QUERY(Case, cat, "t:cReAtUrE", true)
|
||||
|
||||
QUERY(And, cat, "t:creature t:creature", true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue