From 8fd9961a4973bd614efed7dfa059a8e5835bff99 Mon Sep 17 00:00:00 2001 From: Nikhil <95456438+NikhilNRN@users.noreply.github.com> Date: Wed, 24 Jul 2024 12:04:46 -0500 Subject: [PATCH] Update shift_controller_tests.cpp Updated High gear State cases --- .../Tests/Src/Application/shift_controller_tests.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Firmware/Tests/Src/Application/shift_controller_tests.cpp b/Firmware/Tests/Src/Application/shift_controller_tests.cpp index 1289831..d43b0c0 100644 --- a/Firmware/Tests/Src/Application/shift_controller_tests.cpp +++ b/Firmware/Tests/Src/Application/shift_controller_tests.cpp @@ -201,9 +201,17 @@ TEST_F(ShiftControllerFixture, HighGear_IgnoreUpshiftRequest) { } TEST_F(ShiftControllerFixture, HighGear_ToMidGear) { - GTEST_SKIP() << "TODO: \nImplement downshift."; + shift_controller_.SetHighGearState(); + EXPECT_TRUE(shift_controller_.IsHighGearState()); + + rpm_ = 8999; + PerformAndCheckDownshiftRequest(true); + + shift_controller_.Run(); + EXPECT_TRUE(shift_controller_.IsMidGearState()); } + //************************************************************************** // Upshift Conditions //**************************************************************************