diff --git a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java index 9026b1f8cb..33a8039a61 100644 --- a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java +++ b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java @@ -401,7 +401,7 @@ public class VerifyCardDataTest { doubleNames.put(card.getName(), count + 1); } - // check + // check double names for (ExpansionSet.SetCardInfo card : set.getSetCardInfo()) { boolean cardHaveDoubleName = (doubleNames.getOrDefault(card.getName(), 0) > 1); boolean cardHaveVariousSetting = card.getGraphicInfo() != null && card.getGraphicInfo().getUsesVariousArt(); @@ -624,6 +624,7 @@ public class VerifyCardDataTest { //checkNumbers(card, ref); // TODO: load data from allsets.json and check it (allcards.json do not have card numbers) checkBasicLands(card, ref); checkMissingAbilities(card, ref); + checkWrongSymbolsInRules(card); checkWrongAbilitiesText(card, ref); } @@ -728,6 +729,18 @@ public class VerifyCardDataTest { } } + private void checkWrongSymbolsInRules(Card card) { + if (card.getName().contains("’")) { + fail(card, "card name", "card's names contains restricted symbol ’"); + } + + for (String rule : card.getRules()) { + if (rule.contains("’")) { + fail(card, "rules", "card's rules contains restricted symbol ’"); + } + } + } + private void checkLegalityFormats(Card card, JsonCard ref) { if (skipListHaveName("LEGALITY", card.getExpansionSetCode(), card.getName())) { return;