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
path: root/search
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2015-08-20 18:42:54 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:03:08 +0300
commit0654f329113d8e72fa3c478afe44162af2cd474d (patch)
treece8d38829895dbcc973d76704bbf62bf9f830f12 /search
parentcc4562035c7da5f61c3f82d9a3414deb225f3d6b (diff)
[data] Updated minks-pass mwm and source bz2.
Diffstat (limited to 'search')
-rw-r--r--search/search_tests/house_detector_tests.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/search/search_tests/house_detector_tests.cpp b/search/search_tests/house_detector_tests.cpp
index c728ae5151..b8847e3179 100644
--- a/search/search_tests/house_detector_tests.cpp
+++ b/search/search_tests/house_detector_tests.cpp
@@ -2,21 +2,22 @@
#include "search/house_detector.hpp"
-#include "base/logging.hpp"
-
-#include "platform/platform.hpp"
-
-#include "geometry/distance_on_sphere.hpp"
-
#include "indexer/classificator_loader.hpp"
#include "indexer/data_header.hpp"
#include "indexer/ftypes_matcher.hpp"
#include "indexer/index.hpp"
#include "indexer/scales.hpp"
+#include "platform/platform.hpp"
+
+#include "geometry/distance_on_sphere.hpp"
+
+#include "base/logging.hpp"
+
#include "std/iostream.hpp"
#include "std/fstream.hpp"
+
using platform::LocalCountryFile;
class StreetIDsByName
@@ -285,12 +286,17 @@ UNIT_TEST(HS_FindHouseSmoke)
{
vector<string> streetName(1, "проспект Независимости");
TEST_ALMOST_EQUAL_ULPS(FindHouse(index, streetName, "10", 40),
- m2::PointD(27.551358845467561309, 64.234708728154814139), ());
+ m2::PointD(27.551428582902474318, 64.234707387050306693), ());
}
{
vector<string> streetName(1, "улица Ленина");
- TEST_ALMOST_EQUAL_ULPS(FindHouse(index, streetName, "9", 50),
- m2::PointD(27.560341563525355468, 64.240918042070561), ());
+
+ /// @todo This cases doesn't work, but should in new search algorithms.
+ //m2::PointD pt = FindHouse(index, streetName, "28", 50);
+ //m2::PointD pt = FindHouse(index, streetName, "30", 50);
+
+ m2::PointD pt = FindHouse(index, streetName, "21", 50);
+ TEST_ALMOST_EQUAL_ULPS(pt, m2::PointD(27.56477391395549148, 64.234502198059132638), ());
}
}