From 17fa9f2b02770f5ae02bdd874d8113f8cedbf639 Mon Sep 17 00:00:00 2001 From: relf Date: Tue, 2 Apr 2024 21:12:31 +0200 Subject: [PATCH] Fix doc test --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 410d1e1..b202514 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -114,16 +114,16 @@ pub struct StopTols { /// &[(-10., 10.), (-10., 10.)], /// &cons, /// (), -/// 200, +/// 100, /// None /// ) { /// Ok((status, x_opt, y_opt)) => { /// println!("status = {:?}", status); /// println!("x_opt = {:?}", x_opt); /// println!("y_opt = {}", y_opt); -/// # assert_abs_diff_eq!(y_opt, 10.0); +/// # assert_abs_diff_eq!(y_opt, 10.0, epsilon=1e-8); /// } -/// Err((e, _, _)) => println!("Optim error: {:?}", e), +/// Err((e, _, _)) => panic!("Optim error: {:?}", e), /// } /// ``` ///