diff --git a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java index cc916e349f..18557d80e0 100644 --- a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java +++ b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java @@ -1470,6 +1470,7 @@ public class VerifyCardDataTest { .replace("—\n•", "-
&bull ") .replace("\n•", "
&bull "); refText += "
"; + refText = refText.replace("
", "\n"); } // mana ability fix for (String s : refText.split("[\\$\\\n]")) { @@ -1491,7 +1492,13 @@ public class VerifyCardDataTest { refRules[i] = prepareRule(card.getName(), refRules[i]); } - String[] cardRules = card.getRules().toArray(new String[0]); + String[] cardRules = card + .getRules() + .stream() + .reduce("", (a, b) -> a + '\n' + b) + .replace("
", "\n") + .replace("
", "\n") + .split("[\\$\\\n]"); for (int i = 0; i < cardRules.length; i++) { cardRules[i] = prepareRule(card.getName(), cardRules[i]); }