From e456e4d4614505b253a843569a4be9abbb0edf5c Mon Sep 17 00:00:00 2001 From: Jurriaan van den Berg Date: Mon, 2 Nov 2026 16:21:58 +0100 Subject: [PATCH] Added extra cards to the test database --- tests/carddatabase/carddatabase_test.cpp | 6 +- tests/carddatabase/data/cards.xml | 76 ++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 3 deletions(-) diff --git a/tests/carddatabase/carddatabase_test.cpp b/tests/carddatabase/carddatabase_test.cpp index 22cbe9074..1381d1b48 100644 --- a/tests/carddatabase/carddatabase_test.cpp +++ b/tests/carddatabase/carddatabase_test.cpp @@ -52,9 +52,9 @@ TEST(CardDatabaseTest, LoadXml) // load dummy cards and test result db->loadCardDatabases(); - ASSERT_EQ(9, db->getCardList().size()) << "Wrong card count after load"; - ASSERT_EQ(5, db->getSetList().size()) << "Wrong sets count after load"; - ASSERT_EQ(3, db->query()->getAllMainCardTypes().size()) << "Wrong types count after load"; + ASSERT_EQ(13, db->getCardList().size()) << "Wrong card count after load"; + ASSERT_EQ(14, db->getSetList().size()) << "Wrong sets count after load"; + ASSERT_EQ(5, db->query()->getAllMainCardTypes().size()) << "Wrong types count after load"; ASSERT_EQ(Ok, db->getLoadStatus()) << "Wrong status after load"; // ensure the card database is empty after clear() diff --git a/tests/carddatabase/data/cards.xml b/tests/carddatabase/data/cards.xml index 2c1c09ed8..01668f57f 100644 --- a/tests/carddatabase/data/cards.xml +++ b/tests/carddatabase/data/cards.xml @@ -1,6 +1,20 @@ + + Island + 0 + ({T}: Add {U}.) + + 000 + Basic Land — Island + 0 + normal + front + U + Land + + Cat CAT @@ -10,6 +24,7 @@ 111 G 2G + G 2 Creature — Cat Creature @@ -24,6 +39,7 @@ 222 R + R 2RR 4 Creature — Dog @@ -54,6 +70,7 @@ 333 B + B B 1 Instant @@ -67,10 +84,69 @@ 444 U + U 2U 2 Instant + + Artifact + Not a Card + {T}: Add {C}. + + 555 + Artifact + 1 + normal + front + 1 + Artifact + + + + Wall of Denial + Defender, flying +Shroud (This creature can't be the target of spells or abilities.) + + Creature — Wall + WU + 3 + normal + front + WU + 1WU + 0/8 + Creature + + ARB + CMD + CMM + DDI + MM3 + PLST + 2 + + + Maelstrom Archangel + Flying +Whenever this creature deals combat damage to a player, you may cast a spell from your hand without paying its mana cost. + + Creature — Angel + WUBRG + 5 + normal + front + WUBRG + WUBRG + 5/5 + Creature + + CON + DMC + JMP + PLST + 2 +