From e1125124f294ef5b6324a3fdcf10c6cba5a03e53 Mon Sep 17 00:00:00 2001
From: Lily <112970249+lilyhuang-github@users.noreply.github.com>
Date: Wed, 9 Apr 2025 20:45:32 -0400
Subject: [PATCH] changed test card search from real cards to fake and added
cards
---
tests/carddatabase/data/cards.xml | 26 +++++++++++++++++++++++
tests/carddatabase/filter_string_test.cpp | 6 +++---
2 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/tests/carddatabase/data/cards.xml b/tests/carddatabase/data/cards.xml
index 24ede9dff..5457fc131 100644
--- a/tests/carddatabase/data/cards.xml
+++ b/tests/carddatabase/data/cards.xml
@@ -31,5 +31,31 @@
4/4
+
+ Not Dead
+ Not a Card
+ 0
+ Dead!
+
+ 333
+ B
+ B
+ 1
+ Instant
+
+
+
+ Truth or Trail
+ Not a Card
+ 0
+ Truth!
+
+ 444
+ U
+ 2U
+ 2
+ Instant
+
+
diff --git a/tests/carddatabase/filter_string_test.cpp b/tests/carddatabase/filter_string_test.cpp
index 3d9c3f285..9089fd7e2 100644
--- a/tests/carddatabase/filter_string_test.cpp
+++ b/tests/carddatabase/filter_string_test.cpp
@@ -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)