MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / assert_float_eq

Function assert_float_eq

crates/openshell-server/src/telemetry.rs:72–74  ·  view source on GitHub ↗
(actual: f64, expected: f64)

Source from the content-addressed store, hash-verified

70 use super::*;
71
72 fn assert_float_eq(actual: f64, expected: f64) {
73 assert!((actual - expected).abs() <= f64::EPSILON);
74 }
75
76 #[test]
77 fn denial_rate_handles_empty_and_clamps() {

Callers 1

Calls

no outgoing calls

Tested by 1