mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +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:
@@ -33,12 +33,15 @@ public:
|
||||
|
||||
UNIT_CLASS_TEST(CheckpointPredictorTest, CalculateDeltaMetersTest)
|
||||
{
|
||||
TestAlmostEqual(CheckpointPredictor::CalculateDeltaMeters(
|
||||
{0.0, 0.0} /* from */, {2.0, 0.0} /* to */, {1.0, 0.0} /* between */), 0.0);
|
||||
TestAlmostEqual(CheckpointPredictor::CalculateDeltaMeters(
|
||||
{0.0, 0.0} /* from */, {2.0, 0.0} /* to */, {3.0, 0.0} /* between */), 222634.0);
|
||||
TestAlmostEqual(CheckpointPredictor::CalculateDeltaMeters(
|
||||
{0.0, 0.0} /* from */, {2.0, 0.0} /* to */, {-1.0, 0.0} /* between */), 222634.0);
|
||||
TestAlmostEqual(
|
||||
CheckpointPredictor::CalculateDeltaMeters({0.0, 0.0} /* from */, {2.0, 0.0} /* to */, {1.0, 0.0} /* between */),
|
||||
0.0);
|
||||
TestAlmostEqual(
|
||||
CheckpointPredictor::CalculateDeltaMeters({0.0, 0.0} /* from */, {2.0, 0.0} /* to */, {3.0, 0.0} /* between */),
|
||||
222634.0);
|
||||
TestAlmostEqual(
|
||||
CheckpointPredictor::CalculateDeltaMeters({0.0, 0.0} /* from */, {2.0, 0.0} /* to */, {-1.0, 0.0} /* between */),
|
||||
222634.0);
|
||||
}
|
||||
|
||||
// Zero intermediate point test.
|
||||
@@ -52,7 +55,6 @@ UNIT_CLASS_TEST(CheckpointPredictorTest, PredictPositionTest1)
|
||||
TEST_EQUAL(PredictPosition(intermediatePoints, m2::PointD(5.0, 0.0)), 0, ());
|
||||
}
|
||||
|
||||
|
||||
// One intermediate point test.
|
||||
UNIT_CLASS_TEST(CheckpointPredictorTest, PredictPositionTest2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user