Tables have wrong units on Y-Axis #6479

only:disabled unit test
This commit is contained in:
rusefillc 2024-05-08 15:09:43 -04:00
parent 0b24ae318e
commit 2d53980cb8
1 changed files with 16 additions and 0 deletions

View File

@ -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, () -> {