MCPcopy Create free account
hub / github.com/apache/datafusion / test_next_down

Function test_next_down

datafusion/common/src/rounding.rs:292–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290
291 #[test]
292 fn test_next_down() {
293 let x = 1.0f64;
294 // Clamp value into range [0, 1).
295 let clamped = x.clamp(0.0, next_down(1.0f64));
296 assert!(clamped < 1.0);
297 assert_eq!(next_up(clamped), 1.0);
298 }
299
300 #[test]
301 fn test_next_up_small_positive() {

Callers

nothing calls this directly

Calls 2

next_downFunction · 0.85
clampMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…