From 7c047d5c7c44acb1e4904bd3e5860cf0b5004f00 Mon Sep 17 00:00:00 2001 From: relf Date: Mon, 30 Sep 2024 18:20:12 +0200 Subject: [PATCH] Adjust test assertion --- ego/src/egor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());