mirror of
https://github.com/correl/mage.git
synced 2024-12-30 19:10:36 +00:00
Tests: added checks that planeswalkers must be legendary;
This commit is contained in:
parent
e5759127ac
commit
490d207efe
1 changed files with 13 additions and 0 deletions
|
@ -383,6 +383,19 @@ public class VerifyCardDataTest {
|
|||
}
|
||||
}
|
||||
|
||||
// 2. all planeswalkers must be legendary
|
||||
for (ExpansionSet set : sets) {
|
||||
for (ExpansionSet.SetCardInfo cardInfo : set.getSetCardInfo()) {
|
||||
Card card = CardImpl.createCard(cardInfo.getCardClass(), new CardSetInfo(cardInfo.getName(), set.getCode(),
|
||||
cardInfo.getCardNumber(), cardInfo.getRarity(), cardInfo.getGraphicInfo()));
|
||||
Assert.assertNotNull(card);
|
||||
|
||||
if (card.getCardType().contains(CardType.PLANESWALKER) && !card.getSuperType().contains(SuperType.LEGENDARY)) {
|
||||
errorsList.add("error, planeswalker must have legendary type: " + set.getCode() + " - " + set.getName() + " - " + card.getName() + " - " + card.getCardNumber());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
printMessages(warningsList);
|
||||
printMessages(errorsList);
|
||||
if (errorsList.size() > 0) {
|
||||
|
|
Loading…
Reference in a new issue