MCPcopy Create free account
hub / github.com/comaps/comaps / testDistance

Function testDistance

libs/geometry/geometry_tests/oblate_spheroid_tests.cpp:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8double constexpr kAccuracyEps = 1e-3;
9
10void testDistance(ms::LatLon const & a, ms::LatLon const & b, double planDistance)
11{
12 double const factDistance = oblate_spheroid::GetDistance(a, b);
13 TEST_ALMOST_EQUAL_ABS(factDistance, planDistance, kAccuracyEps, ());
14}
15} // namespace
16
17UNIT_TEST(Distance_EdgeCaseEquatorialLine)

Callers 1

UNIT_TESTFunction · 0.85

Calls 1

GetDistanceFunction · 0.50

Tested by

no test coverage detected