mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
Improved verify tests:
- added check for wrong symbols in card number; - added check for miss cards in the set (run manually test_checkWrongCardsDataInSets); - improved performance;
This commit is contained in:
parent
a7480aeab1
commit
e8734702a6
2 changed files with 42 additions and 13 deletions
|
|
@ -199,6 +199,13 @@ public class Sets extends HashMap<String, ExpansionSet> {
|
|||
return null;
|
||||
}
|
||||
|
||||
public static ExpansionSet findSetByName(String setName) {
|
||||
return instance.values().stream()
|
||||
.filter(expansionSet -> expansionSet.getName().equals(setName))
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
}
|
||||
|
||||
public static ExpansionSet.SetCardInfo findCardByClass(Class<?> clazz, String preferredSetCode, String preferredCardNumber) {
|
||||
ExpansionSet.SetCardInfo info = null;
|
||||
if (instance.containsKey(preferredSetCode)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue