rusEFI console does not start fix #1930
This commit is contained in:
parent
fa78c3a293
commit
3b8f5c9da8
|
@ -109,6 +109,21 @@ public class IniFileReaderTest {
|
||||||
return IniFileReader.read(new ByteArrayInputStream(string.getBytes()));
|
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
|
@Test
|
||||||
public void testProtocolMeta() {
|
public void testProtocolMeta() {
|
||||||
String string =
|
String string =
|
||||||
|
|
Loading…
Reference in New Issue