Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-12-19 01:39:02 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:48:06 +0300
commitef515f12547813a6dd2a2a10268c48d4792cdc50 (patch)
treec12ff1869b7165e8330d8ebe682c90a3e4710b6f /storage
parent836d3f86cf8e7a682e7215d4a509b8152a3cb740 (diff)
Add test for Brazil detecting from inner point.
Diffstat (limited to 'storage')
-rw-r--r--storage/storage_tests/country_info_test.cpp8
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