From ef515f12547813a6dd2a2a10268c48d4792cdc50 Mon Sep 17 00:00:00 2001 From: vng Date: Wed, 19 Dec 2012 00:39:02 +0300 Subject: [PATCH] Add test for Brazil detecting from inner point. --- storage/storage_tests/country_info_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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