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

Function Test

generator/generator_tests/cluster_finder_tests.cpp:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void Test(std::vector<NamedPoint> const & input, std::vector<ClusterT> & expected)
93{
94 auto result = generator::GetClusters(input, getRadiusMFunction, isSameFunction);
95
96 Sort(result);
97 Sort(expected);
98 TEST_EQUAL(result, expected, ());
99}
100
101UNIT_TEST(ClustersFinder_Empty)
102{

Callers 1

UNIT_TESTFunction · 0.70

Calls 2

GetClustersFunction · 0.85
SortFunction · 0.70

Tested by

no test coverage detected