# HG changeset patch # User Quintillus # Date 1699858821 18000 # Mon Nov 13 02:00:21 2023 -0500 # Node ID 7a16dbb980ada154f172c2a530b3026fe2f9defa # Parent 97fda6a689b469503bff66c535052af80b755100 Add a test for Sengoku, which only has one spaceship part. diff --git a/src/test/java/com/civfanatics/civ3/xplatformeditor/IOTest.java b/src/test/java/com/civfanatics/civ3/xplatformeditor/IOTest.java --- a/src/test/java/com/civfanatics/civ3/xplatformeditor/IOTest.java +++ b/src/test/java/com/civfanatics/civ3/xplatformeditor/IOTest.java @@ -572,6 +572,12 @@ assertTrue(io.inputBIQ(new File("src/test/java/com/civfanatics/civ3/xplatformeditor/5 Mesoamerica.biq"))); testSaveAndOpen(); } + + @Test + public void testFewerThanTenSpaceshipParts() throws FileNotFoundException { + assertTrue(io.inputBIQ(new File("src/test/java/com/civfanatics/civ3/xplatformeditor/7 MP Sengoku - Sword of the Shogun.biq"))); + testSaveAndOpen(); + } private void testSaveAndOpen() throws FileNotFoundException { File output = new File("output.biq");