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

Function check_avg

libs/geometry/geometry_tests/angle_test.cpp:41–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39namespace
40{
41void check_avg(double arr[], size_t n, double v)
42{
43 ang::AverageCalc calc;
44 for (size_t i = 0; i < n; ++i)
45 calc.Add(arr[i]);
46
47 double const avg = calc.GetAverage();
48 TEST(is_equal_angle(avg, v), (avg, v));
49}
50} // namespace
51
52UNIT_TEST(Average)

Callers 1

UNIT_TESTFunction · 0.85

Calls 4

TESTFunction · 0.85
is_equal_angleFunction · 0.85
AddMethod · 0.45
GetAverageMethod · 0.45

Tested by

no test coverage detected