mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
First test for card database: loading and clear
This commit is contained in:
parent
df393638ed
commit
18993b397b
8 changed files with 236 additions and 2 deletions
27
tests/carddatabase/data/cards.xml
Normal file
27
tests/carddatabase/data/cards.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cockatrice_carddatabase version="3">
|
||||
<cards>
|
||||
<card>
|
||||
<name>Cat</name>
|
||||
<set muId="111">CAT</set>
|
||||
<color>G</color>
|
||||
<manacost>2G</manacost>
|
||||
<cmc>2</cmc>
|
||||
<type>Creature</type>
|
||||
<pt>3/3</pt>
|
||||
<tablerow>0</tablerow>
|
||||
<text>Meow!</text>
|
||||
</card>
|
||||
<card>
|
||||
<name>Dog</name>
|
||||
<set muId="222">DOG</set>
|
||||
<color>R</color>
|
||||
<manacost>2RR</manacost>
|
||||
<cmc>4</cmc>
|
||||
<type>Creature</type>
|
||||
<pt>4/4</pt>
|
||||
<tablerow>0</tablerow>
|
||||
<text>Woof!</text>
|
||||
</card>
|
||||
</cards>
|
||||
</cockatrice_carddatabase>
|
||||
27
tests/carddatabase/data/customsets/customset1.xml
Normal file
27
tests/carddatabase/data/customsets/customset1.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cockatrice_carddatabase version="3">
|
||||
<cards>
|
||||
<card>
|
||||
<name>Sparrow</name>
|
||||
<set muId="333">BRD</set>
|
||||
<color>W</color>
|
||||
<manacost>W</manacost>
|
||||
<cmc>1</cmc>
|
||||
<type>Creature</type>
|
||||
<pt>1/1</pt>
|
||||
<tablerow>0</tablerow>
|
||||
<text></text>
|
||||
</card>
|
||||
<card>
|
||||
<name>Crow</name>
|
||||
<set muId="334">BRD</set>
|
||||
<color>B</color>
|
||||
<manacost>1B</manacost>
|
||||
<cmc>2</cmc>
|
||||
<type>Creature</type>
|
||||
<pt>2/2</pt>
|
||||
<tablerow>0</tablerow>
|
||||
<text></text>
|
||||
</card>
|
||||
</cards>
|
||||
</cockatrice_carddatabase>
|
||||
29
tests/carddatabase/data/tokens.xml
Normal file
29
tests/carddatabase/data/tokens.xml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<cockatrice_carddatabase version="3">
|
||||
<cards>
|
||||
<card>
|
||||
<name>Kitten</name>
|
||||
<set muId="112">CAT</set>
|
||||
<color>G</color>
|
||||
<manacost></manacost>
|
||||
<cmc></cmc>
|
||||
<type>Token</type>
|
||||
<pt>1/1</pt>
|
||||
<tablerow>0</tablerow>
|
||||
<text></text>
|
||||
<token>1</token>
|
||||
</card>
|
||||
<card>
|
||||
<name>Puppy</name>
|
||||
<set muId="223">DOG</set>
|
||||
<color>R</color>
|
||||
<manacost></manacost>
|
||||
<cmc></cmc>
|
||||
<type>Token</type>
|
||||
<pt>1/1</pt>
|
||||
<tablerow>0</tablerow>
|
||||
<text></text>
|
||||
<token>1</token>
|
||||
</card>
|
||||
</cards>
|
||||
</cockatrice_carddatabase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue