Skip to main content

equal_value_with

Function equal_value_with 

Source
pub fn equal_value_with(
    got: &Value,
    expected: &Value,
    normalize: &dyn Fn(Value) -> Value,
) -> bool
Expand description

equal_value with a normalize hook, applied to every node on both sides, outermost first. This is where a runtime-specific container, an insertion-ordered map or a reference wrapper unwrapped into a plain value, is folded into the plain value the fixture’s JSON describes.