Allow exact compatibility float assertions
Some checks failed
Native code generation / deterministic (push) Successful in 11m2s
Imaging and meshing gate / native (push) Failing after 4m26s
JPEG 2000 feature / linux (push) Successful in 1m37s
Skia feature / linux (push) Successful in 31m15s

This commit is contained in:
2026-08-09 12:03:05 +00:00
parent 2274dd9a91
commit 1c434098fd
2 changed files with 2 additions and 0 deletions

View File

@@ -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!(

View File

@@ -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);