mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Fixed color check and added missing attribute to verify.
This commit is contained in:
parent
eb996716bc
commit
09a5ece9f3
2 changed files with 7 additions and 5 deletions
|
@ -3,6 +3,7 @@ package mage.verify;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
class JsonCard {
|
class JsonCard {
|
||||||
|
|
||||||
public String uuid;
|
public String uuid;
|
||||||
public String convertedManaCost;
|
public String convertedManaCost;
|
||||||
public List<ForeignData> foreignData;
|
public List<ForeignData> foreignData;
|
||||||
|
@ -56,4 +57,5 @@ class JsonCard {
|
||||||
public boolean timeshifted;
|
public boolean timeshifted;
|
||||||
public String borderColor;
|
public String borderColor;
|
||||||
public boolean isOversized;
|
public boolean isOversized;
|
||||||
|
public String faceConvertedManaCost;
|
||||||
}
|
}
|
||||||
|
|
|
@ -575,11 +575,11 @@ public class VerifyCardDataTest {
|
||||||
ObjectColor color = card.getColor(null);
|
ObjectColor color = card.getColor(null);
|
||||||
|
|
||||||
if (expected.size() != color.getColorCount()
|
if (expected.size() != color.getColorCount()
|
||||||
|| (color.isBlack() && !expected.contains("Black"))
|
|| (color.isBlack() && !expected.contains("B"))
|
||||||
|| (color.isBlue() && !expected.contains("Blue"))
|
|| (color.isBlue() && !expected.contains("U"))
|
||||||
|| (color.isGreen() && !expected.contains("Green"))
|
|| (color.isGreen() && !expected.contains("G"))
|
||||||
|| (color.isRed() && !expected.contains("Red"))
|
|| (color.isRed() && !expected.contains("R"))
|
||||||
|| (color.isWhite() && !expected.contains("White"))) {
|
|| (color.isWhite() && !expected.contains("W"))) {
|
||||||
fail(card, "colors", color + " != " + expected);
|
fail(card, "colors", color + " != " + expected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue