From 098d34c853d216b3ebc9626b46a571c3de6aa65d Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sat, 27 Jul 2024 09:51:06 -0700 Subject: [PATCH] changed tests to not use magic numbers --- tests/TriacOut/test_TriacOut.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TriacOut/test_TriacOut.cpp b/tests/TriacOut/test_TriacOut.cpp index 3f95998..7e01a43 100644 --- a/tests/TriacOut/test_TriacOut.cpp +++ b/tests/TriacOut/test_TriacOut.cpp @@ -42,17 +42,17 @@ TEST(test_TriacOut, TriacOut_SetupPins) //Expect that pin PA1 is set to output mock().expectOneCall("RegEdit_SetBit") .withPointerParameter("reg", (void *) &PORTA.DIR) - .withUnsignedIntParameter("bit_num", (1<<1)); + .withUnsignedIntParameter("bit_num", G1); //Expect that pin PB3 is set to output mock().expectOneCall("RegEdit_SetBit") .withPointerParameter("reg", (void *) &PORTB.DIR) - .withUnsignedIntParameter("bit_num", (1<<3)); + .withUnsignedIntParameter("bit_num", G2); //Expect that pin PB2 is set to output mock().expectOneCall("RegEdit_SetBit") .withPointerParameter("reg", (void *) &PORTB.DIR) - .withUnsignedIntParameter("bit_num", (1<<2)); + .withUnsignedIntParameter("bit_num", G3); TriacOut_SetupPins(); }