Function snapbox::assert_subset_eq
source · pub fn assert_subset_eq(
expected_root: impl Into<PathBuf>,
actual_root: impl Into<PathBuf>
)
Available on crate feature
path
only.Expand description
Check if a path matches the content of another path, recursively
When the content is text, newlines are normalized.
let output_root = "...";
let expected_root = "tests/snapshots/output.txt";
snapbox::assert_subset_eq(expected_root, output_root);