mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
Updated tests and capped artIndex to be two digits!
This commit is contained in:
@@ -142,7 +142,7 @@ public final class CardDb implements ICardDatabase, IDeckGenPool {
|
||||
}
|
||||
|
||||
private static boolean isArtIndex(String s) {
|
||||
return StringUtils.isNumeric(s);
|
||||
return StringUtils.isNumeric(s) && s.length() <= 2 ; // only artIndex between 1-99
|
||||
}
|
||||
|
||||
private static boolean isSetCode(String s) {
|
||||
|
||||
@@ -128,7 +128,7 @@ public class CardRequestTestCase {
|
||||
request = CardRequest.fromString(requestString);
|
||||
assertEquals(request.cardName, cardName);
|
||||
assertEquals(request.edition, edition);
|
||||
assertEquals(request.artIndex, IPaperCard.DEFAULT_ART_INDEX);
|
||||
assertEquals(request.artIndex, 20);
|
||||
assertEquals(request.collectorNumber, IPaperCard.NO_COLLECTOR_NUMBER);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user