From 6d33a91d09e497040d1069fa5a4a43f10ab39015 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 16 Mar 2020 12:40:55 +0800 Subject: [PATCH] Fix minor floating-point digit error. --- tests/power_of.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/power_of.rs b/tests/power_of.rs index f02a2e52..fb309088 100644 --- a/tests/power_of.rs +++ b/tests/power_of.rs @@ -14,7 +14,7 @@ fn test_power_of() -> Result<(), EvalAltResult> { { assert_eq!( engine.eval::("2.2 ~ 3.3")?, - 13.489468760533386 as FLOAT + 13.489468760533388 as FLOAT ); assert_eq!(engine.eval::("2.0~-2.0")?, 0.25 as FLOAT); assert_eq!(engine.eval::("(-2.0~-2.0)")?, 0.25 as FLOAT); @@ -36,7 +36,7 @@ fn test_power_of_equals() -> Result<(), EvalAltResult> { { assert_eq!( engine.eval::("let x = 2.2; x ~= 3.3; x")?, - 13.489468760533386 as FLOAT + 13.489468760533388 as FLOAT ); assert_eq!( engine.eval::("let x = 2.0; x ~= -2.0; x")?,