Added extra testing/assert line for the returned error value.

This commit is contained in:
Jake Goodwin 2025-02-23 10:34:23 -08:00
parent c07fc415bf
commit 6736e30dd1
1 changed files with 3 additions and 2 deletions

View File

@ -154,9 +154,10 @@ TEST(test_ADC, ADC_ReadValueImplimentationTimesOut)
.withPointerParameter("reg", (void *) &ADCSRA)
.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!");
}