Skip to content

Commit a8af880

Browse files
committed
Rename central moment tests
1 parent f992453 commit a8af880

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/summary_statistics/means.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ mod tests {
250250
}
251251

252252
#[test]
253-
fn test_central_order_moment_with_empty_array_of_floats() {
253+
fn test_central_moment_with_empty_array_of_floats() {
254254
let a: Array1<f64> = array![];
255255
for order in 0..=3 {
256256
assert!(a.central_moment(order).is_none());
@@ -259,23 +259,23 @@ mod tests {
259259
}
260260

261261
#[test]
262-
fn test_zeroth_central_order_moment_is_one() {
262+
fn test_zeroth_central_moment_is_one() {
263263
let n = 50;
264264
let bound: f64 = 200.;
265265
let a = Array::random(n, Uniform::new(-bound.abs(), bound.abs()));
266266
assert_eq!(a.central_moment(0).unwrap(), 1.);
267267
}
268268

269269
#[test]
270-
fn test_first_central_order_moment_is_zero() {
270+
fn test_first_central_moment_is_zero() {
271271
let n = 50;
272272
let bound: f64 = 200.;
273273
let a = Array::random(n, Uniform::new(-bound.abs(), bound.abs()));
274274
assert_eq!(a.central_moment(1).unwrap(), 0.);
275275
}
276276

277277
#[test]
278-
fn test_central_order_moments() {
278+
fn test_central_moments() {
279279
let a: Array1<f64> = array![
280280
0.07820559, 0.5026185, 0.80935324, 0.39384033, 0.9483038, 0.62516215, 0.90772261,
281281
0.87329831, 0.60267392, 0.2960298, 0.02810356, 0.31911966, 0.86705506, 0.96884832,
@@ -306,7 +306,7 @@ mod tests {
306306
}
307307

308308
#[test]
309-
fn test_bulk_central_order_moments() {
309+
fn test_bulk_central_moments() {
310310
// Test that the bulk method is coherent with the non-bulk method
311311
let n = 50;
312312
let bound: f64 = 200.;

0 commit comments

Comments
 (0)