MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / min_max_correctness

Function min_max_correctness

nodedb-query/src/simd_agg.rs:518–523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516
517 #[test]
518 fn min_max_correctness() {
519 let rt = ts_runtime();
520 let values: Vec<f64> = (0..1000).map(|i| (i as f64) - 500.0).collect();
521 assert!(((rt.min_f64)(&values) - (-500.0)).abs() < f64::EPSILON);
522 assert!(((rt.max_f64)(&values) - 499.0).abs() < f64::EPSILON);
523 }
524
525 #[test]
526 fn range_filter_correctness() {

Callers

nothing calls this directly

Calls 2

ts_runtimeFunction · 0.85
collectMethod · 0.80

Tested by

no test coverage detected