mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +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;
|
||||
|
||||
class JsonCard {
|
||||
|
||||
public String uuid;
|
||||
public String convertedManaCost;
|
||||
public List<ForeignData> foreignData;
|
||||
|
@ -56,4 +57,5 @@ class JsonCard {
|
|||
public boolean timeshifted;
|
||||
public String borderColor;
|
||||
public boolean isOversized;
|
||||
public String faceConvertedManaCost;
|
||||
}
|
||||
|
|
|
@ -575,11 +575,11 @@ public class VerifyCardDataTest {
|
|||
ObjectColor color = card.getColor(null);
|
||||
|
||||
if (expected.size() != color.getColorCount()
|
||||
|| (color.isBlack() && !expected.contains("Black"))
|
||||
|| (color.isBlue() && !expected.contains("Blue"))
|
||||
|| (color.isGreen() && !expected.contains("Green"))
|
||||
|| (color.isRed() && !expected.contains("Red"))
|
||||
|| (color.isWhite() && !expected.contains("White"))) {
|
||||
|| (color.isBlack() && !expected.contains("B"))
|
||||
|| (color.isBlue() && !expected.contains("U"))
|
||||
|| (color.isGreen() && !expected.contains("G"))
|
||||
|| (color.isRed() && !expected.contains("R"))
|
||||
|| (color.isWhite() && !expected.contains("W"))) {
|
||||
fail(card, "colors", color + " != " + expected);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue