From b2a128d4d179d1d7ae5ab9d630d0b3c765b71aea Mon Sep 17 00:00:00 2001 From: bakk Date: Mon, 17 May 2021 18:15:49 +0200 Subject: [PATCH] Fixed integrate function test --- kalk/src/interpreter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kalk/src/interpreter.rs b/kalk/src/interpreter.rs index b8df058..691a217 100644 --- a/kalk/src/interpreter.rs +++ b/kalk/src/interpreter.rs @@ -578,11 +578,11 @@ mod tests { *binary( binary(var("x"), TokenKind::Power, literal(3f64)), TokenKind::Star, - binary(var("d"), TokenKind::Star, var("x")), + var("dx"), ), ], )); - assert!((interpret(stmt).unwrap().unwrap().to_f64() - 60f64).abs() < 1f64); + assert!((interpret(stmt).unwrap().unwrap().to_f64() - 60f64).abs() < 0.001f64); } }