diff options
author | vng <viktor.govako@gmail.com> | 2012-12-19 01:39:02 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:48:06 +0300 |
commit | ef515f12547813a6dd2a2a10268c48d4792cdc50 (patch) | |
tree | c12ff1869b7165e8330d8ebe682c90a3e4710b6f /storage | |
parent | 836d3f86cf8e7a682e7215d4a509b8152a3cb740 (diff) |
Add test for Brazil detecting from inner point.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage_tests/country_info_test.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/storage_tests/country_info_test.cpp b/storage/storage_tests/country_info_test.cpp index e6c17fcc0f..7e8bfbba43 100644 --- a/storage/storage_tests/country_info_test.cpp +++ b/storage/storage_tests/country_info_test.cpp @@ -35,6 +35,14 @@ UNIT_TEST(CountryInfo_GetByPoint_Smoke) TEST_EQUAL(info.m_name, "Belarus", ()); TEST_EQUAL(info.m_flag, "by", ()); + + + getter->GetRegionInfo(m2::PointD(MercatorBounds::LonToX(-38.0098101), + MercatorBounds::LatToY(-6.4146288)), + info); + + TEST_EQUAL(info.m_name, "Brazil", ()); + TEST_EQUAL(info.m_flag, "br", ()); } namespace |