Remove redundant assertion message in empty cluster reinitialization test

This commit is contained in:
Palash Tyagi 2025-07-13 01:41:41 +01:00
parent 4d8ed2e908
commit 7c7c8c2a16

View File

@ -365,11 +365,11 @@ mod tests {
// The crucial assertion: After re-initialization, no cluster should remain empty. // The crucial assertion: After re-initialization, no cluster should remain empty.
// This verifies that the "furthest point" logic successfully re-assigned a point // This verifies that the "furthest point" logic successfully re-assigned a point
// to the previously empty cluster. // 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. // The crucial assertion: After re-initialization, no cluster should remain empty.
// This verifies that the "furthest point" logic successfully re-assigned a point // This verifies that the "furthest point" logic successfully re-assigned a point
// to the previously empty cluster. // 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));
} }
} }