Skip to content

Commit f992453

Browse files
committed
Test more cases in central moment tests
1 parent 0b0b0ba commit f992453

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/summary_statistics/means.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,10 @@ mod tests {
252252
#[test]
253253
fn test_central_order_moment_with_empty_array_of_floats() {
254254
let a: Array1<f64> = array![];
255-
assert!(a.central_moment(1).is_none());
256-
assert!(a.central_moments(1).is_none());
255+
for order in 0..=3 {
256+
assert!(a.central_moment(order).is_none());
257+
assert!(a.central_moments(order).is_none());
258+
}
257259
}
258260

259261
#[test]

0 commit comments

Comments
 (0)