mirror of
https://github.com/correl/mage.git
synced 2024-11-29 03:00:12 +00:00
Tests: improved verify tests for full art settings
This commit is contained in:
parent
991d81d123
commit
49bd6fe90d
1 changed files with 10 additions and 5 deletions
|
@ -609,8 +609,16 @@ public class VerifyCardDataTest {
|
||||||
String code = MtgJsonService.xMageToMtgJsonCodes.getOrDefault(set.getCode(), set.getCode()) + " - " + jsonCard.getRealCardName() + " - " + jsonCard.number;
|
String code = MtgJsonService.xMageToMtgJsonCodes.getOrDefault(set.getCode(), set.getCode()) + " - " + jsonCard.getRealCardName() + " - " + jsonCard.number;
|
||||||
foundedJsonCards.add(code);
|
foundedJsonCards.add(code);
|
||||||
|
|
||||||
|
// CHECK: only lands can use full art in current version;
|
||||||
|
// Another cards must be in text render mode as normal, example: https://scryfall.com/card/sld/76/athreos-god-of-passage
|
||||||
|
boolean isLand = card.getRarity().equals(Rarity.LAND);
|
||||||
|
if (card.isFullArt() && !isLand) {
|
||||||
|
errorsList.add("Error: only lands can use full art setting: "
|
||||||
|
+ set.getCode() + " - " + set.getName() + " - " + card.getName() + " - " + card.getCardNumber());
|
||||||
|
}
|
||||||
|
|
||||||
// CHECK: must use full art setting
|
// CHECK: must use full art setting
|
||||||
if (jsonCard.isFullArt && !card.isFullArt()) {
|
if (jsonCard.isFullArt && isLand && !card.isFullArt()) {
|
||||||
errorsList.add("Error: card must use full art setting: "
|
errorsList.add("Error: card must use full art setting: "
|
||||||
+ set.getCode() + " - " + set.getName() + " - " + card.getName() + " - " + card.getCardNumber());
|
+ set.getCode() + " - " + set.getName() + " - " + card.getName() + " - " + card.getCardNumber());
|
||||||
}
|
}
|
||||||
|
@ -1429,10 +1437,7 @@ public class VerifyCardDataTest {
|
||||||
if (cardText.replace(name, name.split(", ")[0]).equals(refText)) {
|
if (cardText.replace(name, name.split(", ")[0]).equals(refText)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (cardText.replace(name, name.split(" ")[0]).equals(refText)) {
|
return cardText.replace(name, name.split(" ")[0]).equals(refText);
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkWrongAbilitiesText(Card card, MtgJsonCard ref, int cardIndex) {
|
private void checkWrongAbilitiesText(Card card, MtgJsonCard ref, int cardIndex) {
|
||||||
|
|
Loading…
Reference in a new issue