diff --git a/java_console/inifile/src/com/opensr5/ini/test/IniFileReaderTest.java b/java_console/inifile/src/com/opensr5/ini/test/IniFileReaderTest.java index b0219d8e25..946e3959a2 100644 --- a/java_console/inifile/src/com/opensr5/ini/test/IniFileReaderTest.java +++ b/java_console/inifile/src/com/opensr5/ini/test/IniFileReaderTest.java @@ -21,6 +21,18 @@ public class IniFileReaderTest { private static final String PAGE_READ = " pageReadCommand = \"X\", \"X\", \"X\"\n\n\n\n"; private static final String SIGNATURE_UNIT_TEST = " signature = \"unit test\"\n"; + @Test + public void testSplitWithEmptyUnits() { + { + String[] s = IniFileReader.splitTokens("\tverboseCanBaseAddress\t\t\t= \"\", 1"); + assertEquals(2, s.length); + } + { + String[] s = IniFileReader.splitTokens("\tverboseCanBaseAddress\t\t\t= scalar, U32,\t756,\t\"\", 1, 0, 0, 536870911, 0"); + assertEquals(9, s.length); + } + } + @Test public void testSplit() { {