1 /* testable.h: Implementation of a testable component.
2 
3    This example code is in the Public Domain (or CC0 licensed, at your option.)
4 
5    Unless required by applicable law or agreed to in writing, this
6    software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
7    CONDITIONS OF ANY KIND, either express or implied.
8 */
9 
10 #pragma once
11 
12 /**
13  * @brief Calculate arithmetic mean of integer values
14  * @param values  array of values
15  * @param count   number of elements in the array
16  * @return arithmetic mean of values, or zero count is zero
17  */
18 int testable_mean(const int* values, int count);
19