rusEFI console does not start fix #1930

This commit is contained in:
rusefillc 2020-11-18 19:28:00 -05:00
parent fa78c3a293
commit 3b8f5c9da8
1 changed files with 15 additions and 0 deletions

View File

@ -109,6 +109,21 @@ public class IniFileReaderTest {
return IniFileReader.read(new ByteArrayInputStream(string.getBytes()));
}
@Test
public void testConditional() {
String string = "page = 1\n" +
"[Constants]\n" +
"#if LAMBDA\n" +
"\tlambdaTable\t\t\t\t\t = array, U08, 18592, [16x16],\"deg\", 0.006802721088435374, 0, 0.6, 1.5, 2\n" +
"#else\n" +
"\tlambdaTable\t\t\t\t\t = array, U08, 18592, [16x16],\"deg\", 0.1, 0, 0, 25.0, 1\n" +
"#endif\n";
RawIniFile lines = IniFileReader.read(new ByteArrayInputStream(string.getBytes()));
IniFileModel model = new IniFileModel().readIniFile(lines);
assertEquals(1, model.allIniFields.size());
}
@Test
public void testProtocolMeta() {
String string =