Skip to content

Commit

Permalink
Update shift_controller_tests.cpp
Browse files Browse the repository at this point in the history
Updated High gear State cases
  • Loading branch information
NikhilNRN authored Jul 24, 2024
1 parent 7da7f2e commit 8fd9961
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Firmware/Tests/Src/Application/shift_controller_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
//**************************************************************************
Expand Down

0 comments on commit 8fd9961

Please sign in to comment.