target lambda & afr log fields broken #4727
This commit is contained in:
parent
5c8cf7fd10
commit
b1dc928b72
|
@ -61,7 +61,6 @@ public class OutputsTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* while we have {@link OutputChannelWriter} here we use the current 'legacy' implementation
|
* while we have {@link OutputChannelWriter} here we use the current 'legacy' implementation
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
private static OutputsSectionConsumer runOriginalImplementation(String test) {
|
private static OutputsSectionConsumer runOriginalImplementation(String test) {
|
||||||
ReaderState state = new ReaderState();
|
ReaderState state = new ReaderState();
|
||||||
|
@ -192,7 +191,7 @@ public class OutputsTest {
|
||||||
public void testLongIterate() {
|
public void testLongIterate() {
|
||||||
ReaderState state = new ReaderState();
|
ReaderState state = new ReaderState();
|
||||||
String test = "struct total\n" +
|
String test = "struct total\n" +
|
||||||
"\tint[3 iterate] triggerSimulatorPins;Each rusEFI piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEFI board.\\nSee also directSelfStimulation which is different.\n" +
|
"\tint[3 iterate] triggerSimulatorPins;Each rusEFI piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEFI board.\\nSee also directSelfStimulation which is different.\n" +
|
||||||
"end_struct\n";
|
"end_struct\n";
|
||||||
TestTSProjectConsumer tsProjectConsumer = new TestTSProjectConsumer("", state);
|
TestTSProjectConsumer tsProjectConsumer = new TestTSProjectConsumer("", state);
|
||||||
state.readBufferedReader(test, tsProjectConsumer);
|
state.readBufferedReader(test, tsProjectConsumer);
|
||||||
|
@ -201,4 +200,18 @@ public class OutputsTest {
|
||||||
"\ttriggerSimulatorPins2 = \"Each rusEFI piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEFI board.\"\n" +
|
"\ttriggerSimulatorPins2 = \"Each rusEFI piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEFI board.\"\n" +
|
||||||
"\ttriggerSimulatorPins3 = \"Each rusEFI piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEFI board.\"\n", tsProjectConsumer.getSettingContextHelp().toString());
|
"\ttriggerSimulatorPins3 = \"Each rusEFI piece can provide synthetic trigger signal for external ECU. Sometimes these wires are routed back into trigger inputs of the same rusEFI board.\"\n", tsProjectConsumer.getSettingContextHelp().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void nameDuplicate() {
|
||||||
|
String test = "struct total\n" +
|
||||||
|
"float afr_type;PID dTime;\"ms\", 1, 0, 0, 3000, 0\n" +
|
||||||
|
"uint8_t afr_type;123;\"ms\", 1, 0, 0, 3000, 0\n" +
|
||||||
|
"end_struct\n";
|
||||||
|
|
||||||
|
|
||||||
|
String expectedLegacy = "afr_type = scalar, F32, 0, \"ms\", 1, 0\n" +
|
||||||
|
"afr_type = scalar, U08, 0, \"ms\", 1, 0\n" +
|
||||||
|
"; total TS size = 1\n";
|
||||||
|
assertEquals(expectedLegacy, runOriginalImplementation(test).getContent());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue