Adapts tests to case sensitive "Ok" status code.
This commit is contained in:
parent
c209e31ce1
commit
29c2a117c0
@ -30,7 +30,7 @@ BOOST_AUTO_TEST_CASE(test_nearest_response)
|
||||
BOOST_REQUIRE(rc == Status::Ok);
|
||||
|
||||
const auto code = result.values.at("code").get<json::String>().value;
|
||||
BOOST_CHECK_EQUAL(code, "ok");
|
||||
BOOST_CHECK_EQUAL(code, "Ok");
|
||||
|
||||
const auto &waypoints = result.values.at("waypoints").get<json::Array>().values;
|
||||
BOOST_CHECK(!waypoints.empty()); // the dataset has at least one nearest coordinate
|
||||
@ -97,7 +97,7 @@ BOOST_AUTO_TEST_CASE(test_nearest_response_for_location_in_small_component)
|
||||
BOOST_REQUIRE(rc == Status::Ok);
|
||||
|
||||
const auto code = result.values.at("code").get<json::String>().value;
|
||||
BOOST_CHECK_EQUAL(code, "ok");
|
||||
BOOST_CHECK_EQUAL(code, "Ok");
|
||||
|
||||
const auto &waypoints = result.values.at("waypoints").get<json::Array>().values;
|
||||
BOOST_CHECK(!waypoints.empty());
|
||||
|
@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE(test_route_same_coordinates_fixture)
|
||||
BOOST_CHECK(rc == Status::Ok);
|
||||
|
||||
json::Object reference{
|
||||
{{"code", "ok"},
|
||||
{{"code", "Ok"},
|
||||
{"waypoints",
|
||||
json::Array{{json::Object{{{"name", ""}, {"location", json::Array{}}, {"hint", ""}}},
|
||||
json::Object{{{"name", ""}, {"location", json::Array{}}, {"hint", ""}}}}}},
|
||||
@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE(test_route_same_coordinates)
|
||||
BOOST_CHECK(rc == Status::Ok);
|
||||
|
||||
const auto code = result.values.at("code").get<json::String>().value;
|
||||
BOOST_CHECK_EQUAL(code, "ok");
|
||||
BOOST_CHECK_EQUAL(code, "Ok");
|
||||
|
||||
const auto &waypoints = result.values.at("waypoints").get<json::Array>().values;
|
||||
BOOST_CHECK(waypoints.size() == params.coordinates.size());
|
||||
@ -209,7 +209,7 @@ BOOST_AUTO_TEST_CASE(test_route_response_for_locations_in_small_component)
|
||||
BOOST_CHECK(rc == Status::Ok);
|
||||
|
||||
const auto code = result.values.at("code").get<json::String>().value;
|
||||
BOOST_CHECK_EQUAL(code, "ok");
|
||||
BOOST_CHECK_EQUAL(code, "Ok");
|
||||
|
||||
const auto &waypoints = result.values.at("waypoints").get<json::Array>().values;
|
||||
BOOST_CHECK_EQUAL(waypoints.size(), params.coordinates.size());
|
||||
|
Loading…
Reference in New Issue
Block a user