Review fixes.

This commit is contained in:
Vladimir Byko-Ianko 2018-01-24 16:17:12 +03:00 committed by Tatiana Yan
parent 2079c2fe1e
commit 3c49a663f4
2 changed files with 4 additions and 2 deletions

View file

@ -262,14 +262,14 @@ namespace integration
const TestTurn & TestTurn::TestDirection(routing::turns::CarDirection expectedDirection) const
{
TEST_EQUAL(m_direction, expectedDirection, ());
TEST_EQUAL(m_direction, expectedDirection, (m_direction));
return *this;
}
const TestTurn & TestTurn::TestOneOfDirections(
set<routing::turns::CarDirection> const & expectedDirections) const
{
TEST(expectedDirections.find(m_direction) != expectedDirections.cend(), ());
TEST(expectedDirections.find(m_direction) != expectedDirections.cend(), (m_direction));
return *this;
}

View file

@ -358,6 +358,8 @@ UNIT_TEST(RussiaMoscowMKADLeningradkaTest)
TEST_EQUAL(result, IRouter::NoError, ());
integration::TestTurnCount(route, 1 /* expectedTurnCount */);
integration::GetNthTurn(route, 0).TestValid().TestOneOfDirections(
{CarDirection::TurnSlightRight, CarDirection::TurnRight});
}
UNIT_TEST(BelarusMKADShosseinai)