humans are made out of meat
This commit is contained in:
parent
3a3022d7f3
commit
622888d5d4
|
@ -27,6 +27,8 @@ public enum StateDictionary {
|
|||
register(live_data_e.LDS_AC_CONTROL, AcControl.VALUES); // 12
|
||||
register(live_data_e.LDS_FUEL_PUMP, FuelPump.VALUES);
|
||||
register(live_data_e.LDS_TPS_ACCEL, TpsAccelState.VALUES);
|
||||
register(live_data_e.LDS_MAIN_RELAY, MainRelay.VALUES);
|
||||
register(live_data_e.LDS_BOOST_CONTROL, BoostControl.VALUES);
|
||||
if (map.size() != live_data_e.values().length) {
|
||||
Set<live_data_e> missing = new HashSet<live_data_e>(Arrays.asList(live_data_e.values()));
|
||||
missing.removeAll(map.keySet());
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
package com.rusefi.ldmp;
|
||||
|
||||
import com.rusefi.enums.live_data_e;
|
||||
import org.junit.Test;
|
||||
|
||||
public class StateDictionaryTest {
|
||||
@Test
|
||||
public void testStateDictionaryIsComplete() {
|
||||
// we assert that this does not fail
|
||||
StateDictionary.INSTANCE.getFields(live_data_e.LDS_AC_CONTROL);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue