mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
* Performance: memory usage optimization for deck editor (removed bloated usage of ManaCosts -> ManaColor objects, see #7515);
This commit is contained in:
parent
c3d55ea12a
commit
275e996c08
23 changed files with 170 additions and 143 deletions
|
|
@ -1621,7 +1621,7 @@ public class VerifyCardDataTest {
|
|||
}
|
||||
|
||||
String expected = ref.manaCost;
|
||||
String cost = join(card.getManaCost().getSymbols());
|
||||
String cost = String.join("", card.getManaCost().getSymbols());
|
||||
if (cost.isEmpty()) {
|
||||
cost = null;
|
||||
}
|
||||
|
|
@ -1674,14 +1674,6 @@ public class VerifyCardDataTest {
|
|||
}
|
||||
}
|
||||
|
||||
private String join(Iterable<?> items) {
|
||||
StringBuilder result = new StringBuilder();
|
||||
for (Object item : items) {
|
||||
result.append(item);
|
||||
}
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_checkCardRatingConsistency() {
|
||||
// all cards with same name must have same rating (see RateCard.rateCard)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue