3d3f5aa144b5709b214d833ec5ec9fb5331ba567
1 #ifndef SYNCLUST_HELPERS_H
2 #define SYNCLUST_HELPERS_H
9 #include "sources/utils/boolean.h"
11 //auxiliary to check vectors equality
18 // auxiliary to count distinct values in an integer array
19 int countDistinctValues(
24 // check if clusters proportions match a given fraction (tolerance 'tol')
25 int checkClustersProportions(
32 // basic unit tests macros
33 #define ASSERT_TRUE(b) \
36 fprintf(stdout, "Error in file %s at line %i\n", __FILE__, __LINE__); \
41 #define ASSERT_FALSE(b) \
44 fprintf(stdout, "Error in file %s at line %i\n", __FILE__, __LINE__); \