generated from TDD-Templates/cmake_cpputest_template_avr
Added extra testing/assert line for the returned error value.
This commit is contained in:
parent
c07fc415bf
commit
6736e30dd1
|
@ -154,9 +154,10 @@ TEST(test_ADC, ADC_ReadValueImplimentationTimesOut)
|
||||||
.withPointerParameter("reg", (void *) &ADCSRA)
|
.withPointerParameter("reg", (void *) &ADCSRA)
|
||||||
.withUnsignedIntParameter("bit_num", ADSC);
|
.withUnsignedIntParameter("bit_num", ADSC);
|
||||||
|
|
||||||
//Check that it does return a value.
|
//Check that it return the "error" value
|
||||||
|
|
||||||
ADC_ReadValue(0);
|
uint16_t value = ADC_ReadValue(0);
|
||||||
|
CHECK_EQUAL_TEXT(UINT16_MAX, value, "ERROR: Should return UINT16_MAX!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue