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

Function TestRunCmpPoints

generator/generator_tests/mini_roundabout_tests.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void TestRunCmpPoints(std::vector<m2::PointD> const & pointsFact, std::vector<m2::PointD> const & pointsPlan, double r)
54{
55 TEST_EQUAL(pointsFact.size(), pointsPlan.size(), ());
56 TEST_GREATER(pointsFact.size(), 2, ());
57 for (size_t i = 0; i < pointsFact.size(); ++i)
58 TEST(AlmostEqualAbs(pointsFact[i], pointsPlan[i], kMwmPointAccuracy), ());
59}
60
61void TestRunCmpNumbers(double val1, double val2)
62{

Callers 1

UNIT_TESTFunction · 0.85

Calls 3

TESTFunction · 0.85
AlmostEqualAbsFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected