Skip to main content

diff_values

Function diff_values 

Source
pub fn diff_values(actual: &VmValue, expected: &VmValue) -> Vec<ValueDifference>
Expand description

Every place actual and expected disagree, deepest-addressable first.

Returns an empty vec exactly when values_equal(actual, expected) is true — the two are kept in lockstep by [tests::diff_is_empty_iff_values_equal].