diff --git a/ego/src/egor.rs b/ego/src/egor.rs index 21e5f3ed..6624b8cc 100644 --- a/ego/src/egor.rs +++ b/ego/src/egor.rs @@ -558,7 +558,8 @@ mod tests { let filepath = std::path::Path::new(&outdir).join(DOE_FILE); assert!(filepath.exists()); let doe: Array2 = read_npy(&filepath).expect("file read"); - assert!(doe.nrows() > max_iters); + assert!(doe.nrows() <= init_doe.nrows() + max_iters); + assert!(doe.nrows() >= init_doe.nrows()); println!("Rosenbrock optim result = {res:?}"); println!("Elapsed = {:?}", now.elapsed());