Skip to content

Commit

Permalink
feat(intention): E2 Max Level Change
Browse files Browse the repository at this point in the history
E2 Max Level Change
  • Loading branch information
AndyTWF committed May 19, 2022
2 parents 966a445 + c23661b commit 50be2d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugin/intention/SectorExitPointEtrat.cpp
Expand Up @@ -16,7 +16,7 @@ namespace UKControllerPlugin::IntentionCode {
}

// Special low level rule for ETRAT
if (cruiseLevel <= 27000) {
if (cruiseLevel <= 29000) {
return "E2";
}

Expand Down
4 changes: 2 additions & 2 deletions test/plugin/intention/SectorExitPointEtratTest.cpp
Expand Up @@ -30,12 +30,12 @@ namespace UKControllerPluginTest::IntentionCode {

TEST_F(SectorExitPointEtratTest, GetIntentionCodeReturnsCorrectSecondaryBoundary)
{
EXPECT_EQ(0, exitPoint.GetIntentionCode(routeMock, 0, 27000).compare("E2"));
EXPECT_EQ(0, exitPoint.GetIntentionCode(routeMock, 0, 29000).compare("E2"));
}

TEST_F(SectorExitPointEtratTest, GetIntentionCodeReturnsCorrectPrimaryCodeBoundary)
{
EXPECT_EQ(0, exitPoint.GetIntentionCode(routeMock, 0, 27001).compare("E"));
EXPECT_EQ(0, exitPoint.GetIntentionCode(routeMock, 0, 29001).compare("E"));
}

TEST_F(SectorExitPointEtratTest, GetIntentionCodeReturnsCorrectPrimaryCode)
Expand Down

0 comments on commit 50be2d4

Please sign in to comment.