Skip to main content

record_check

Function record_check 

Source
pub fn record_check(what: &str, reference: f64, simulated: f64, allowed: f64)
Expand description

Appends one check against an outside number as a JSON line to the file KS_VALIDATION_OUT names, for the validation dashboard (tools/validation_dashboard.py); nothing when the variable is unset. It asserts nothing: the test’s own assert stays the judge. allowed is the largest difference the test accepts, in the reference’s unit (a relative tolerance times |reference|, or the absolute one). The test is the running thread’s name, as libtest and nextest name it, and the source line is the caller’s.