From 7c7c8c2a169f5786fa64730610abca3854b16be9 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sun, 13 Jul 2025 01:41:41 +0100 Subject: [PATCH] Remove redundant assertion message in empty cluster reinitialization test --- src/compute/models/k_means.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compute/models/k_means.rs b/src/compute/models/k_means.rs index f68f365..cbb4cff 100644 --- a/src/compute/models/k_means.rs +++ b/src/compute/models/k_means.rs @@ -365,11 +365,11 @@ mod tests { // The crucial assertion: After re-initialization, no cluster should remain empty. // This verifies that the "furthest point" logic successfully re-assigned a point // to the previously empty cluster. - assert!(counts.iter().all(|&c| c > 0), "All clusters should have at least one point after re-initialization."); + assert!(counts.iter().all(|&c| c > 0)); // The crucial assertion: After re-initialization, no cluster should remain empty. // This verifies that the "furthest point" logic successfully re-assigned a point // to the previously empty cluster. - assert!(counts.iter().all(|&c| c > 0), "All clusters should have at least one point after re-initialization."); + assert!(counts.iter().all(|&c| c > 0)); } }