parent
0b24ae318e
commit
2d53980cb8
|
@ -3,6 +3,7 @@ package com.rusefi.test;
|
|||
import com.rusefi.*;
|
||||
import com.rusefi.output.*;
|
||||
import com.rusefi.parse.TypesHelper;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
@ -68,6 +69,21 @@ public class ConfigFieldParserTest {
|
|||
"; total TS size = 12\n", tsProjectConsumer.getContent());
|
||||
}
|
||||
|
||||
@Test
|
||||
@Disabled
|
||||
public void testArrayBitStringValue() {
|
||||
String test = "struct pid_s\n" +
|
||||
"int[3 x 1] afr_type;;{bitStringValue(fuelUnits, fuelAlgorithm) }, 1.0, 0, 0, 3000, 0, noMsqSave\n" +
|
||||
"end_struct\n";
|
||||
ReaderStateImpl state = new ReaderStateImpl();
|
||||
|
||||
TestTSProjectConsumer tsProjectConsumer = new TestTSProjectConsumer("", state);
|
||||
state.readBufferedReader(test, tsProjectConsumer);
|
||||
assertEquals("afr_type = array, S32, 0, [1x3], \"ms\", 1, 0, 0, 3000, 0, noMsqSave\n" +
|
||||
"; total TS size = 12\n", tsProjectConsumer.getContent());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testSameFieldTwice() {
|
||||
assertThrows(IllegalStateException.class, () -> {
|
||||
|
|
Loading…
Reference in New Issue