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

Function CheckEqualPoints

libs/coding/coding_tests/point_coding_tests.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23uint32_t const kBig = uint32_t{1} << 30;
24
25void CheckEqualPoints(m2::PointD const & p1, m2::PointD const & p2)
26{
27 TEST(p1.EqualDxDy(p2, kEps), (p1, p2));
28
29 TEST_GREATER_OR_EQUAL(p1.x, -180.0, ());
30 TEST_GREATER_OR_EQUAL(p1.y, -180.0, ());
31 TEST_LESS_OR_EQUAL(p1.x, 180.0, ());
32 TEST_LESS_OR_EQUAL(p1.y, 180.0, ());
33
34 TEST_GREATER_OR_EQUAL(p2.x, -180.0, ());
35 TEST_GREATER_OR_EQUAL(p2.y, -180.0, ());
36 TEST_LESS_OR_EQUAL(p2.x, 180.0, ());
37 TEST_LESS_OR_EQUAL(p2.y, 180.0, ());
38}
39} // namespace
40
41UNIT_TEST(PointDToPointU_Epsilons)

Callers 1

UNIT_TESTFunction · 0.85

Calls 2

TESTFunction · 0.85
EqualDxDyMethod · 0.45

Tested by

no test coverage detected