From 5b80a676a2918dbf4b8efc600520332be058aaec Mon Sep 17 00:00:00 2001 From: annoviko Date: Wed, 25 Nov 2020 21:03:41 +0100 Subject: [PATCH] #659: Unit-test 'utest_kmedoids.totally_similar_data' correction. --- ccore/tst/utest-kmedoids.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccore/tst/utest-kmedoids.cpp b/ccore/tst/utest-kmedoids.cpp index 6a7a54eb..335bf790 100755 --- a/ccore/tst/utest-kmedoids.cpp +++ b/ccore/tst/utest-kmedoids.cpp @@ -41,7 +41,8 @@ template_kmedoids_length_process_data(const dataset_ptr p_data, return; } - ASSERT_EQ(p_start_medoids.size(), actual_clusters.size()); + ASSERT_LE(medoids.size(), p_start_medoids.size()); + ASSERT_EQ(medoids.size(), actual_clusters.size()); ASSERT_CLUSTER_SIZES(data, actual_clusters, p_expected_cluster_length); }