look it's a bug?!
This commit is contained in:
parent
567751b5a3
commit
5cd5783c02
|
@ -40,7 +40,19 @@ public class JavaSensorsConsumerTest {
|
|||
"internalMcuTemperature(\"mcu\", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 17, 1.0, 0.0, 0.0, \"deg C\"),\n" +
|
||||
"alignmentFill_at_18(\"need 4 byte alignment\", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 18, 1.0, -20.0, 100.0, \"units\"),\n",
|
||||
javaSensorsConsumer.getContent());
|
||||
assertEquals(20, javaSensorsConsumer.sensorTsPosition);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void bitAtTheEndBug() throws IOException {
|
||||
ReaderState state = new ReaderState();
|
||||
String outputChannels =
|
||||
"struct_no_prefix output_channels_s\n" +
|
||||
"bit sd_present\n" +
|
||||
"end_struct\n";
|
||||
JavaSensorsConsumer javaSensorsConsumer = new JavaSensorsConsumer();
|
||||
state.readBufferedReader(outputChannels, javaSensorsConsumer);
|
||||
|
||||
assertEquals(0, javaSensorsConsumer.sensorTsPosition);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue