Function symbolic_testutils::assert_snapshot[][src]

pub fn assert_snapshot<S: AsRef<str>, T: Debug>(snapshot_name: S, val: &T)

Asserts that the given object matches the snapshot saved in the snapshot file. The object is serialized using the Debug trait.

If the value differs from the snapshot, the assertion fails and prints a colored diff output.