mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 21:33:59 +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:
@@ -17,8 +17,7 @@ void TestGpsInfo(GpsInfo const & tested, GpsInfo const & expected)
|
||||
TEST_EQUAL(tested.m_source, expected.m_source, ());
|
||||
TEST(AlmostEqualAbs(tested.m_latitude, expected.m_latitude, kEpsilon), ());
|
||||
TEST(AlmostEqualAbs(tested.m_longitude, expected.m_longitude, kEpsilon), ());
|
||||
TEST(AlmostEqualAbs(tested.m_horizontalAccuracy, expected.m_horizontalAccuracy, kEpsilon),
|
||||
());
|
||||
TEST(AlmostEqualAbs(tested.m_horizontalAccuracy, expected.m_horizontalAccuracy, kEpsilon), ());
|
||||
TEST(AlmostEqualAbs(tested.m_altitude, expected.m_altitude, kEpsilon), ());
|
||||
TEST(AlmostEqualAbs(tested.m_verticalAccuracy, expected.m_verticalAccuracy, kEpsilon), ());
|
||||
TEST(AlmostEqualAbs(tested.m_bearing, expected.m_bearing, kEpsilon), ());
|
||||
@@ -50,22 +49,22 @@ UNIT_TEST(LinearExtrapolation)
|
||||
|
||||
// 100 ms after |point2|.
|
||||
{
|
||||
GpsInfo const expected = GetGpsInfo(1.1 /* timestampS */, 1.011 /* m_latitude */,
|
||||
1.011 /* m_longitude */, 2.1 /* m_altitude */, 12.2 /* m_speed */);
|
||||
GpsInfo const expected = GetGpsInfo(1.1 /* timestampS */, 1.011 /* m_latitude */, 1.011 /* m_longitude */,
|
||||
2.1 /* m_altitude */, 12.2 /* m_speed */);
|
||||
TestGpsInfo(LinearExtrapolation(loc1, loc2, 100 /* timeAfterPoint2Ms */), expected);
|
||||
}
|
||||
|
||||
// 200 ms after |point2|.
|
||||
{
|
||||
GpsInfo const expected = GetGpsInfo(1.2 /* timestampS */, 1.012 /* m_latitude */,
|
||||
1.012 /* m_longitude */, 2.2 /* m_altitude */, 12.4 /* m_speed */);
|
||||
GpsInfo const expected = GetGpsInfo(1.2 /* timestampS */, 1.012 /* m_latitude */, 1.012 /* m_longitude */,
|
||||
2.2 /* m_altitude */, 12.4 /* m_speed */);
|
||||
TestGpsInfo(LinearExtrapolation(loc1, loc2, 200 /* timeAfterPoint2Ms */), expected);
|
||||
}
|
||||
|
||||
// 1000 ms after |point2|.
|
||||
{
|
||||
GpsInfo const expected = GetGpsInfo(2.0 /* timestampS */, 1.02 /* m_latitude */,
|
||||
1.02 /* m_longitude */, 3.0 /* m_altitude */, 14.0 /* m_speed */);
|
||||
GpsInfo const expected = GetGpsInfo(2.0 /* timestampS */, 1.02 /* m_latitude */, 1.02 /* m_longitude */,
|
||||
3.0 /* m_altitude */, 14.0 /* m_speed */);
|
||||
TestGpsInfo(LinearExtrapolation(loc1, loc2, 1000 /* timeAfterPoint2Ms */), expected);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user