Skip to main content

assert_param_normalized_roundtrip

Function assert_param_normalized_roundtrip 

Source
pub fn assert_param_normalized_roundtrip<P: PluginExport>()
Expand description

Assert set_normalizedget_normalized round-trips for all params.

For discrete/bool/enum params, only tests boundary values (0.0, 1.0) since intermediate values snap to the nearest discrete step.

§Panics

Panics if get_normalized returns None for an id with a ParamInfo entry, or if the round-trip error exceeds the per-param tolerance (half a step for discrete params, 1e-6 for continuous).