From 352ee9e6a86ec656d3993c9010afccd7941c07ab Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 23 Feb 2025 09:59:52 -0800 Subject: [PATCH] Added test for ADC_Disable() --- tests/ADC/test_ADC.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/ADC/test_ADC.cpp b/tests/ADC/test_ADC.cpp index 2308ed3..cdc7a97 100644 --- a/tests/ADC/test_ADC.cpp +++ b/tests/ADC/test_ADC.cpp @@ -133,12 +133,11 @@ TEST(test_ADC, ADC_EnablePasses) TEST(test_ADC, ADC_DisablePasses) { - /* mock().expectOneCall("RegEdit_ClearBit") - .withPointerParameter("reg", (void *) &ADC0.CTRLA) - .withUnsignedIntParameter("bit_num", 0); - */ - //ADC_Disable(); + .withPointerParameter("reg", (void *) &ADCSRA) + .withUnsignedIntParameter("bit_num", ADEN); + + ADC_Disable(); }