Fix tests

This commit is contained in:
Oleg Agafonov 2019-03-19 21:44:06 +04:00
parent 3b142d7e79
commit a260030069
3 changed files with 16 additions and 17 deletions

View file

@ -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());
}
}

View file

@ -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());
}
}