Refactor assertions in tests to simplify error messages for KMeans, CryptoRng, and Prng modules

This commit is contained in:
Palash Tyagi
2025-07-29 22:15:45 +01:00
parent 750adc72e9
commit ef322fc6a2
3 changed files with 12 additions and 22 deletions

View File

@@ -192,11 +192,8 @@ mod tests {
break;
}
}
assert!(
matches_data_point,
"Centroid {} (empty cluster) does not match any data point",
c
);
// "Centroid {} (empty cluster) does not match any data point",c
assert!(matches_data_point);
}
}
break;