mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
update handling of keywords: AND, OR, NOT in card search (#5788)
* update hnadling of keywords: AND, OR, NOT in card search * added and * update test * update test * update OR to not be [oO][rR] and just look for OR * keyword testing * adjusted new test * implement test case for cards with keyword in name * implement test case to cards with keyword in name * format * update test case * change test cas * update truth test case * changed test card search from real cards to fake and added cards * Update tests/carddatabase/data/cards.xml Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com> * Update tests/carddatabase/filter_string_test.cpp Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com> * Update tests/carddatabase/filter_string_test.cpp Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com> * update formatting * update cardatabase_test to include +2 cards * update test case +1 set + 1 type --------- Co-authored-by: RickyRister <42636155+RickyRister@users.noreply.github.com>
This commit is contained in:
parent
26dcb015ce
commit
574ea01e08
4 changed files with 43 additions and 10 deletions
|
|
@ -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</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue