progress
This commit is contained in:
parent
c48af1456a
commit
b5d5b003e4
|
@ -7,23 +7,15 @@ import org.junit.Test;
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
public class StateDictionaryTest {
|
public class StateDictionaryTest {
|
||||||
|
|
||||||
private static final int OUTPUTS_SIZE = 612;
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testStateDictionaryIsComplete() {
|
public void testStateDictionaryIsComplete() {
|
||||||
// we assert that this does not fail
|
// we assert that this does not fail
|
||||||
StateDictionary.INSTANCE.getFields(live_data_e.LDS_ac_control);
|
StateDictionary.INSTANCE.getFields(live_data_e.LDS_ac_control);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testStructSize() {
|
|
||||||
// todo: do we have this struct size anywhere?
|
|
||||||
assertEquals(OUTPUTS_SIZE, StateDictionary.getSize(TsOutputs.VALUES));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testOffset() {
|
public void testOffset() {
|
||||||
assertEquals(OUTPUTS_SIZE, StateDictionary.INSTANCE.getOffset(live_data_e.LDS_knock_controller));
|
int outputsSize = StateDictionary.getSize(TsOutputs.VALUES);
|
||||||
|
assertEquals(outputsSize, StateDictionary.INSTANCE.getOffset(live_data_e.LDS_knock_controller));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue