diff --git a/boa/src/builtins/math/tests.rs b/boa/src/builtins/math/tests.rs index b02d0e21a31..feb90b91046 100644 --- a/boa/src/builtins/math/tests.rs +++ b/boa/src/builtins/math/tests.rs @@ -1,5 +1,4 @@ -use super::*; -use crate::{builtins::value::ValueData, exec::Executor, forward, forward_val, realm::Realm}; +use crate::{exec::Executor, forward, forward_val, realm::Realm}; use std::f64; #[test] @@ -395,7 +394,7 @@ fn pow() { assert_eq!(a.to_num(), f64::from(1024)); assert_eq!(b.to_num(), f64::from(49)); assert_eq!(c.to_num(), f64::from(2.0)); - assert_eq!(d.to_num(), f64::from(0.02040816326530612)); + assert_eq!(d.to_num(), f64::from(0.020_408_163_265_306_12)); } #[test] @@ -504,7 +503,7 @@ fn tan() { let realm = Realm::create(); let mut engine = Executor::new(realm); let init = r#" - var a = Math.tan(1); + var a = Math.tan(1.1); "#; @@ -512,7 +511,7 @@ fn tan() { let a = forward_val(&mut engine, "a").unwrap(); - assert_eq!(a.to_num(), f64::from(1.557_407_724_654_902)); + assert_eq!(a.to_num(), f64::from(1.964_759_657_248_652_5)); } #[test] @@ -530,7 +529,7 @@ fn tanh() { let a = forward_val(&mut engine, "a").unwrap(); let b = forward_val(&mut engine, "b").unwrap(); - assert_eq!(a.to_num(), f64::from(0.761_594_155_955_c764_9)); + assert_eq!(a.to_num(), f64::from(0.761_594_155_955_764_9)); assert_eq!(b.to_num(), f64::from(0)); }