Added more port b tests
This commit is contained in:
parent
c2a5e94bae
commit
8d7af1d678
|
@ -222,13 +222,24 @@ TEST(test_load, PortBHandlerEnabledRisingEdgeHI)
|
|||
Load_HandleLoadPortB(adc_pin, load_pin);
|
||||
}
|
||||
|
||||
|
||||
TEST(test_load, PortBHandlerDisabledAboveTarget)
|
||||
TEST(test_load, PortBHandlerDisableFallingEdgeLO)
|
||||
{
|
||||
MockADC_PushValue(HYSTERESIS_HI);
|
||||
//Start from the falling edge.
|
||||
MockADC_PushValue(HYSTERESIS_LO + 1);
|
||||
|
||||
setup_adc_expectations(adc_pin);
|
||||
expect_portb_disabled(load_pin, true);
|
||||
expect_portb_disabled(load_pin, false);
|
||||
|
||||
Load_HandleLoadPortB(adc_pin, load_pin);
|
||||
}
|
||||
|
||||
TEST(test_load, PortBHandlerDisableFallingEdgeHI)
|
||||
{
|
||||
//Start from the falling edge.
|
||||
MockADC_PushValue(HYSTERESIS_HI + 1);
|
||||
|
||||
setup_adc_expectations(adc_pin);
|
||||
expect_portb_disabled(load_pin, false);
|
||||
|
||||
Load_HandleLoadPortB(adc_pin, load_pin);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue