mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 04:24:29 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -16,22 +16,20 @@ using namespace search;
|
||||
using namespace std;
|
||||
|
||||
class RankerTest : public SearchTest
|
||||
{
|
||||
};
|
||||
{};
|
||||
|
||||
UNIT_CLASS_TEST(RankerTest, ErrorsInStreets)
|
||||
{
|
||||
TestStreet mazurova(
|
||||
vector<m2::PointD>{m2::PointD(-0.001, -0.001), m2::PointD(0, 0), m2::PointD(0.001, 0.001)},
|
||||
"Мазурова", "ru");
|
||||
TestStreet mazurova(vector<m2::PointD>{m2::PointD(-0.001, -0.001), m2::PointD(0, 0), m2::PointD(0.001, 0.001)},
|
||||
"Мазурова", "ru");
|
||||
TestBuilding mazurova14(m2::PointD(-0.001, -0.001), "", "14", mazurova.GetName("ru"), "ru");
|
||||
|
||||
TestStreet masherova(
|
||||
vector<m2::PointD>{m2::PointD(-0.001, 0.001), m2::PointD(0, 0), m2::PointD(0.001, -0.001)},
|
||||
"Машерова", "ru");
|
||||
TestStreet masherova(vector<m2::PointD>{m2::PointD(-0.001, 0.001), m2::PointD(0, 0), m2::PointD(0.001, -0.001)},
|
||||
"Машерова", "ru");
|
||||
TestBuilding masherova14(m2::PointD(0.001, 0.001), "", "14", masherova.GetName("ru"), "ru");
|
||||
|
||||
auto id = BuildCountry("Belarus", [&](TestMwmBuilder & builder) {
|
||||
auto id = BuildCountry("Belarus", [&](TestMwmBuilder & builder)
|
||||
{
|
||||
builder.Add(mazurova);
|
||||
builder.Add(mazurova14);
|
||||
|
||||
@@ -70,10 +68,7 @@ UNIT_CLASS_TEST(RankerTest, UniteSameResults)
|
||||
TestCafe cafe1({0.5, 0.5}, "И точка", "ru");
|
||||
TestCafe cafe2({0.5, 0.5}, "И точка", "ru");
|
||||
|
||||
auto const worldID = BuildWorld([&](TestMwmBuilder & builder)
|
||||
{
|
||||
builder.Add(city);
|
||||
});
|
||||
auto const worldID = BuildWorld([&](TestMwmBuilder & builder) { builder.Add(city); });
|
||||
|
||||
auto const countryID = BuildCountry("Wonderland", [&](TestMwmBuilder & builder)
|
||||
{
|
||||
@@ -97,19 +92,13 @@ UNIT_CLASS_TEST(RankerTest, UniteSameResults)
|
||||
UNIT_CLASS_TEST(RankerTest, PreferCountry)
|
||||
{
|
||||
std::string const name = "Wonderland";
|
||||
TestCountry wonderland(m2::PointD(9.0, 9.0), name, "en"); // ~1400 km from (0, 0)
|
||||
TestCountry wonderland(m2::PointD(9.0, 9.0), name, "en"); // ~1400 km from (0, 0)
|
||||
TestPOI cafe(m2::PointD(0.0, 0.0), name, "en");
|
||||
cafe.SetTypes({{"amenity", "cafe"}});
|
||||
|
||||
auto const worldID = BuildWorld([&](TestMwmBuilder & builder)
|
||||
{
|
||||
builder.Add(wonderland);
|
||||
});
|
||||
auto const worldID = BuildWorld([&](TestMwmBuilder & builder) { builder.Add(wonderland); });
|
||||
|
||||
auto const countryID = BuildCountry(name, [&](TestMwmBuilder & builder)
|
||||
{
|
||||
builder.Add(cafe);
|
||||
});
|
||||
auto const countryID = BuildCountry(name, [&](TestMwmBuilder & builder) { builder.Add(cafe); });
|
||||
|
||||
SetViewport({0.0, 0.0, 1.0, 1.0});
|
||||
{
|
||||
@@ -123,4 +112,4 @@ UNIT_CLASS_TEST(RankerTest, PreferCountry)
|
||||
TEST(OrderedResultsMatch("Wanderland", rules), ());
|
||||
}
|
||||
}
|
||||
} // namespace ranker_test
|
||||
} // namespace ranker_test
|
||||
|
||||
Reference in New Issue
Block a user