diff --git a/test/controller_mux_test.h b/test/controller_mux_test.h new file mode 100644 index 000000000..40a8ee3c5 --- /dev/null +++ b/test/controller_mux_test.h @@ -0,0 +1,5 @@ +#ifndef CONTROLLER_MUX_TEST +#define CONTROLLER_MUX_TEST + + +#endif /* CONTROLLER_MUX_TEST */ diff --git a/test/drivetrain_system_test.h b/test/drivetrain_system_test.h new file mode 100644 index 000000000..3d32d4a93 --- /dev/null +++ b/test/drivetrain_system_test.h @@ -0,0 +1,5 @@ +#ifndef DRIVETRAIN_SYSTEM_TEST +#define DRIVETRAIN_SYSTEM_TEST + + +#endif /* DRIVETRAIN_SYSTEM_TEST */ diff --git a/test/main.cpp b/test/main.cpp index 975ce0cc2..2b93feab9 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -1,7 +1,7 @@ #include #include "state_machine_test.h" -// #include "pedals_system_test.h" +#include "pedals_system_test.h" diff --git a/test/pedals_system_test.h b/test/pedals_system_test.h index 960345a07..221e1f419 100644 --- a/test/pedals_system_test.h +++ b/test/pedals_system_test.h @@ -7,6 +7,7 @@ author: Lucas Plant #ifndef PEDALS_SYSTEM_TEST #define PEDALS_SYSTEM_TEST +#include #include #include "PedalsSystem.h" #include @@ -25,7 +26,7 @@ struct PedalIsActiveTestCase -void test_pedal_is_active(void) +TEST(PedalsSystemTesting, test_pedal_is_active) { PedalsParams params_for_test = {1, 1, 10, 10, 1, 1, 9, 9}; PedalsSystem pedals_system(params_for_test, params_for_test); @@ -34,7 +35,7 @@ void test_pedal_is_active(void) for (const auto &test_case : test_cases) { auto out = pedals_system.mech_brake_active(test_case.pedalsinput); - TEST_ASSERT_EQUAL(test_case.expect_active, out); + EXPECT_EQ(test_case.expect_active, out); } }