File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ mod tests {
273
273
assert_eq!( RemEuclid :: rem_euclid( -x, y) , 2 ) ;
274
274
let x: $t = $t:: min_value( ) +1 ;
275
275
let y: $t = -1 ;
276
- assert_eq!( DivEuclid :: div_euclid( x, y) , $t:: MAX ) ;
276
+ assert_eq!( DivEuclid :: div_euclid( x, y) , $t:: max_value ( ) ) ;
277
277
}
278
278
) +
279
279
} ;
@@ -292,13 +292,13 @@ mod tests {
292
292
let x: $t = 12.1 ;
293
293
let y: $t = 3.2 ;
294
294
assert!( DivEuclid :: div_euclid( x, y) * y+RemEuclid :: rem_euclid( x, y) -x
295
- <=46.4 * $t :: EPSILON ) ;
295
+ <=46.4 * <$t as :: Float > :: epsilon ( ) ) ;
296
296
assert!( DivEuclid :: div_euclid( x, -y) * -y+RemEuclid :: rem_euclid( x, -y) -x
297
- <= 46.4 * $t :: EPSILON ) ;
297
+ <= 46.4 * <$t as :: Float > :: epsilon ( ) ) ;
298
298
assert!( DivEuclid :: div_euclid( -x, y) * y+RemEuclid :: rem_euclid( -x, y) -( -x)
299
- <= 46.4 * $t :: EPSILON ) ;
299
+ <= 46.4 * <$t as :: Float > :: epsilon ( ) ) ;
300
300
assert!( DivEuclid :: div_euclid( -x, -y) * -y+RemEuclid :: rem_euclid( -x, -y) -( -x)
301
- <= 46.4 * $t :: EPSILON ) ;
301
+ <= 46.4 * <$t as :: Float > :: epsilon ( ) ) ;
302
302
}
303
303
) +
304
304
} ;
You can’t perform that action at this time.
0 commit comments