Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(intention): add golum exit point for copenhagen #422

Merged
merged 1 commit into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/plugin/intention/SectorExitRepositoryFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ namespace UKControllerPlugin {
"LESRA", "K3", SectorExitPoint::outEast | SectorExitPoint::outNorthEast);
points["SOPTO"] = std::make_unique<SectorExitPoint>(
"SOPTO", "K3", SectorExitPoint::outEast | SectorExitPoint::outNorthEast);
points["GOLUM"] = std::make_unique<SectorExitPoint>(
"GOLUM", "K3", SectorExitPoint::outEast | SectorExitPoint::outNorthEast);

// Stavanger
points["PEPIN"] = std::make_unique<SectorExitPoint>(
Expand Down
5 changes: 5 additions & 0 deletions test/plugin/intention/SectorExitRepositoryTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ namespace UKControllerPluginTest {
ASSERT_TRUE(repo->GetSectorExitPoint("SOPTO").GetIntentionCode(mockRoute, 0, 37000).compare("K3") == 0);
ASSERT_EQ(repo->outEast | repo->outNorthEast, repo->GetSectorExitPoint("SOPTO").GetOutDirection());

// GOLUM
ASSERT_TRUE(repo->GetSectorExitPoint("GOLUM").GetName().compare("GOLUM") == 0);
ASSERT_TRUE(repo->GetSectorExitPoint("GOLUM").GetIntentionCode(mockRoute, 0, 37000).compare("K3") == 0);
ASSERT_EQ(repo->outEast | repo->outNorthEast, repo->GetSectorExitPoint("GOLUM").GetOutDirection());

// Stavanger

// PEPIN
Expand Down