Moving RussiaFerryToCrimeaLoadCrossGeometryTest to routing quality tests.

This commit is contained in:
Vladimir Byko-Ianko 2018-09-27 16:13:22 +03:00 committed by Vlad Mihaylenko
parent 3030ca0da4
commit 235a398b8e
2 changed files with 14 additions and 15 deletions

View file

@ -91,21 +91,6 @@ namespace
MercatorBounds::FromLatLon(55.77691, 37.70428), 150.);
}
UNIT_TEST(RussiaFerryToCrimeaLoadCrossGeometryTest)
{
// To Crimea.
integration::CalculateRouteAndTestRouteLength(
integration::GetVehicleComponents<VehicleType::Car>(),
MercatorBounds::FromLatLon(45.34123, 36.67679), {0., 0.},
MercatorBounds::FromLatLon(45.36479, 36.62194), 5365.0);
// From Crimea.
integration::CalculateRouteAndTestRouteLength(
integration::GetVehicleComponents<VehicleType::Car>(),
MercatorBounds::FromLatLon(45.36479, 36.62194), {0., 0.},
MercatorBounds::FromLatLon(45.34123, 36.67679), 5400.0);
}
UNIT_TEST(PriceIslandLoadCrossGeometryTest)
{
size_t constexpr kExpectedPointsNumber = 56;

View file

@ -12,4 +12,18 @@ UNIT_TEST(RoutingQuality_FinlandBridgeInsteadOfFerry)
{{{55.56602, 12.88537}}} /* reference track */),
());
}
UNIT_TEST(RoutingQuality_RussiaToCrimeaFerry)
{
TEST(CheckCarRoute({45.34123, 36.67679} /* start */, {45.36479, 36.62194} /* finish */,
{{{45.3532, 36.64912}}} /* reference track */),
());
}
UNIT_TEST(RoutingQuality_RussiaFromCrimeaFerry)
{
TEST(CheckCarRoute({45.36479, 36.62194} /* start */, {45.34123, 36.67679} /* finish */,
{{{45.3532, 36.64912}}} /* reference track */),
());
}
} // namespace