From a35b80629949ceefb6b97cf840d300be64d2c2d1 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sat, 27 Jul 2024 09:56:03 -0700 Subject: [PATCH] removed unused comments and substituted bit shifts with constants --- tests/TriacOut/test_TriacOut.cpp | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/tests/TriacOut/test_TriacOut.cpp b/tests/TriacOut/test_TriacOut.cpp index 49ba252..8ad3be4 100644 --- a/tests/TriacOut/test_TriacOut.cpp +++ b/tests/TriacOut/test_TriacOut.cpp @@ -79,19 +79,13 @@ TEST(test_TriacOut, TriacOut_SetAllHigh) } -/* -TEST(test_TriacOut, TriacOut_InitTimerA) -{ - -} - void FakeDelay(double us) { //do Nothing. } -*/ -/* + + TEST(test_TriacOut, TriacOut_PulsePins) { UT_PTR_SET(Delay_MicroSeconds, FakeDelay); @@ -100,19 +94,17 @@ TEST(test_TriacOut, TriacOut_PulsePins) //Expect that pin PA1 is set to output mock().expectOneCall("RegEdit_ClearBit") .withPointerParameter("reg", (void *) &PORTA.OUT) - .withUnsignedIntParameter("bit_num", (1<<1)); + .withUnsignedIntParameter("bit_num", G1); //Expect that pin PB3 is set to output mock().expectOneCall("RegEdit_ClearBit") .withPointerParameter("reg", (void *) &PORTB.OUT) - .withUnsignedIntParameter("bit_num", (1<<3)); + .withUnsignedIntParameter("bit_num", G2); //Expect that pin PB2 is set to output mock().expectOneCall("RegEdit_ClearBit") .withPointerParameter("reg", (void *) &PORTB.OUT) - .withUnsignedIntParameter("bit_num", (1<<2)); - + .withUnsignedIntParameter("bit_num", G3); TriacOut_PulsePins(1000); } -*/