changed tests to not use magic numbers

This commit is contained in:
jakeg00dwin 2024-07-27 09:51:06 -07:00
parent 1a5324aef6
commit 098d34c853
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}