@@ -666,7 +666,7 @@ mod tests {
666666 . downcast_ref :: < Float64Array > ( )
667667 . unwrap ( )
668668 . value ( 0 ) ;
669- assert ! ( 10.0 - value < f64 :: EPSILON ) ;
669+ assert_eq ! ( 10.0 , value) ;
670670
671671 let slot = array. value ( 4 ) ;
672672 let value = slot
@@ -771,7 +771,7 @@ mod tests {
771771 let slot = slot. as_any ( ) . downcast_ref :: < Float64Array > ( ) . unwrap ( ) ;
772772 assert_eq ! ( slot. len( ) , 1 ) ;
773773 let value = slot. value ( 0 ) ;
774- assert ! ( value - 3_f64 < f64 :: EPSILON ) ;
774+ assert_eq ! ( value, 3_f64 ) ;
775775 }
776776 2 => {
777777 let slot = slot. as_any ( ) . downcast_ref :: < Int32Array > ( ) . unwrap ( ) ;
@@ -783,7 +783,7 @@ mod tests {
783783 let slot = slot. as_any ( ) . downcast_ref :: < Float64Array > ( ) . unwrap ( ) ;
784784 assert_eq ! ( slot. len( ) , 1 ) ;
785785 let value = slot. value ( 0 ) ;
786- assert ! ( 5_f64 - value < f64 :: EPSILON ) ;
786+ assert_eq ! ( 5_f64 , value) ;
787787 }
788788 4 => {
789789 let slot = slot. as_any ( ) . downcast_ref :: < Int32Array > ( ) . unwrap ( ) ;
@@ -835,7 +835,7 @@ mod tests {
835835 assert ! ( !union . is_null( i) ) ;
836836 assert_eq ! ( slot. len( ) , 1 ) ;
837837 let value = slot. value ( 0 ) ;
838- assert ! ( value - 3_f64 < f64 :: EPSILON ) ;
838+ assert_eq ! ( value, 3_f64 ) ;
839839 }
840840 3 => {
841841 let slot = slot. as_any ( ) . downcast_ref :: < Int32Array > ( ) . unwrap ( ) ;
@@ -872,7 +872,7 @@ mod tests {
872872 assert ! ( !new_union. is_null( i) ) ;
873873 assert_eq ! ( slot. len( ) , 1 ) ;
874874 let value = slot. value ( 0 ) ;
875- assert ! ( value - 3_f64 < f64 :: EPSILON ) ;
875+ assert_eq ! ( value, 3_f64 ) ;
876876 }
877877 2 => assert ! ( new_union. is_null( i) ) ,
878878 3 => {
0 commit comments