| 23 | using namespace platform; |
| 24 | |
| 25 | void TestAddress(ReverseGeocoder & coder, ms::LatLon const & ll, std::string_view street, |
| 26 | std::string const & houseNumber) |
| 27 | { |
| 28 | ReverseGeocoder::Address addr; |
| 29 | coder.GetNearbyAddress(mercator::FromLatLon(ll), addr); |
| 30 | |
| 31 | std::string const expectedKey = strings::ToUtf8(GetStreetNameAsKey(street, false /* ignoreStreetSynonyms */)); |
| 32 | std::string const resultKey = |
| 33 | strings::ToUtf8(GetStreetNameAsKey(addr.m_street.m_name, false /* ignoreStreetSynonyms */)); |
| 34 | |
| 35 | TEST_EQUAL(resultKey, expectedKey, (addr)); |
| 36 | TEST_EQUAL(houseNumber, addr.GetHouseNumber(), (addr)); |
| 37 | } |
| 38 | |
| 39 | void TestAddress(ReverseGeocoder & coder, std::shared_ptr<MwmInfo> mwmInfo, ms::LatLon const & ll, |
| 40 | StringUtf8Multilang const & streetNames, std::string const & houseNumber) |
no test coverage detected