Function snapbox::assert_eq_path
source · [−]Expand description
Check if a value matches the content of a file
When the content is text, newlines are normalized.
let output = "something";
let expected_path = "tests/snapshots/output.txt";
snapbox::assert_eq_path(expected_path, output);