Weaken the std f32::to_degrees/to_radians tests
This commit is contained in:
parent
ac6eca4b66
commit
ec3cd50f3d
|
@ -1493,8 +1493,8 @@ mod tests {
|
|||
assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-6);
|
||||
|
||||
let (deg, rad) = (deg as f32, rad as f32);
|
||||
assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-6);
|
||||
assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-6);
|
||||
assert!((FloatCore::to_degrees(rad) - deg).abs() < 1e-5);
|
||||
assert!((FloatCore::to_radians(deg) - rad).abs() < 1e-5);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1508,8 +1508,8 @@ mod tests {
|
|||
assert!((Float::to_radians(deg) - rad).abs() < 1e-6);
|
||||
|
||||
let (deg, rad) = (deg as f32, rad as f32);
|
||||
assert!((Float::to_degrees(rad) - deg).abs() < 1e-6);
|
||||
assert!((Float::to_radians(deg) - rad).abs() < 1e-6);
|
||||
assert!((Float::to_degrees(rad) - deg).abs() < 1e-5);
|
||||
assert!((Float::to_radians(deg) - rad).abs() < 1e-5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue