Allow exact compatibility float assertions
This commit is contained in:
@@ -734,6 +734,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::float_cmp)] // Exact representable constants are the compatibility contract.
|
||||
fn defaults_match_reference_and_validate() {
|
||||
let settings = Settings::defaults();
|
||||
assert_eq!(
|
||||
|
||||
@@ -119,6 +119,7 @@ fn incoming_packet_archive_is_bounded_and_rejects_duplicates() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::float_cmp)] // Exact representable throttle values are the golden contract.
|
||||
fn agent_throttle_clamps_and_round_trips_golden_little_endian_values() {
|
||||
let throttle = AgentThrottle::default();
|
||||
assert_eq!(throttle.resend(), 150_000.0);
|
||||
|
||||
Reference in New Issue
Block a user