mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
Fix tests
This commit is contained in:
parent
3b142d7e79
commit
a260030069
3 changed files with 16 additions and 17 deletions
|
|
@ -20,13 +20,12 @@ public class DckExporterTest {
|
|||
deck.getSideboard().add(new DeckCardInfo("Island", "RNA", "3", 2));
|
||||
DckExporter exporter = new DckExporter();
|
||||
exporter.writeDeck(baos, deck);
|
||||
assertEquals(
|
||||
"2 [1:RNA] Forest\n" +
|
||||
"3 [2:RNA] Plains\n" +
|
||||
"SB: 2 [3:RNA] Island\n" +
|
||||
"LAYOUT MAIN:\n" +
|
||||
"LAYOUT SIDEBOARD:\n",
|
||||
new String(baos.toByteArray()));
|
||||
assertEquals("2 [1:RNA] Forest" + System.lineSeparator() +
|
||||
"3 [2:RNA] Plains" + System.lineSeparator() +
|
||||
"SB: 2 [3:RNA] Island" + System.lineSeparator() +
|
||||
"LAYOUT MAIN:" + System.lineSeparator() +
|
||||
"LAYOUT SIDEBOARD:" + System.lineSeparator(),
|
||||
baos.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -20,13 +20,13 @@ public class MtgoExporterTest {
|
|||
deck.getSideboard().add(new DeckCardInfo("Island", "RNA", "3", 2));
|
||||
MtgoExporter exporter = new MtgoExporter();
|
||||
exporter.writeDeck(baos, deck);
|
||||
assertEquals(
|
||||
"2 Forest\n" +
|
||||
"3 Plains\n" +
|
||||
"\n" +
|
||||
"\n" +
|
||||
"2 Island\n" +
|
||||
"\n", new String(baos.toByteArray()));
|
||||
assertEquals("2 Forest" + System.lineSeparator() +
|
||||
"3 Plains" + System.lineSeparator() +
|
||||
System.lineSeparator() +
|
||||
System.lineSeparator() +
|
||||
"2 Island" + System.lineSeparator() +
|
||||
System.lineSeparator(),
|
||||
baos.toString());
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue