mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-05 20:23:48 +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:
@@ -14,8 +14,7 @@ using namespace indexer;
|
||||
|
||||
UNIT_TEST(CitiesBoundariesChecker_Square)
|
||||
{
|
||||
auto const checker =
|
||||
CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
|
||||
auto const checker = CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
|
||||
|
||||
TEST(checker.InCity({0.5, 0.5}), ());
|
||||
TEST(checker.InCity({0.0001, 0.0001}), ());
|
||||
@@ -42,9 +41,9 @@ UNIT_TEST(CitiesBoundariesChecker_NotConvexPolygon)
|
||||
|
||||
UNIT_TEST(CitiesBoundariesChecker_IntersectedPolygons)
|
||||
{
|
||||
auto const checker = CitiesBoundariesChecker(
|
||||
{CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
|
||||
CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
|
||||
auto const checker =
|
||||
CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
|
||||
CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
|
||||
|
||||
TEST(checker.InCity({0.3, 0.3}), ());
|
||||
TEST(checker.InCity({0.0001, 0.0001}), ());
|
||||
@@ -57,10 +56,10 @@ UNIT_TEST(CitiesBoundariesChecker_IntersectedPolygons)
|
||||
|
||||
UNIT_TEST(CitiesBoundariesChecker_SeveralPolygons)
|
||||
{
|
||||
auto const checker = CitiesBoundariesChecker(
|
||||
{CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
|
||||
CityBoundary({{10.0, 0.0}, {11.0, -1.0}, {10.5, 0.0}, {11.0, 1.0}, {10.0, 1.0}}),
|
||||
CityBoundary({{0.0, 10.0}, {1.0, -11.0}, {0.5, 10.0}, {1.0, 11.0}, {0.0, 11.0}})});
|
||||
auto const checker =
|
||||
CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
|
||||
CityBoundary({{10.0, 0.0}, {11.0, -1.0}, {10.5, 0.0}, {11.0, 1.0}, {10.0, 1.0}}),
|
||||
CityBoundary({{0.0, 10.0}, {1.0, -11.0}, {0.5, 10.0}, {1.0, 11.0}, {0.0, 11.0}})});
|
||||
|
||||
TEST(checker.InCity({0.3, 0.3}), ());
|
||||
TEST(checker.InCity({0.0001, 0.0001}), ());
|
||||
|
||||
Reference in New Issue
Block a user