From 6736e30dd1cbf57c2fbc61f2877b370153e7781d Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 23 Feb 2025 10:34:23 -0800 Subject: [PATCH] Added extra testing/assert line for the returned error value. --- tests/ADC/test_ADC.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/ADC/test_ADC.cpp b/tests/ADC/test_ADC.cpp index 1c5c03c..04f1f6d 100644 --- a/tests/ADC/test_ADC.cpp +++ b/tests/ADC/test_ADC.cpp @@ -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!"); }