tests: show that hidden files are not picked up by difftastic

pull/692/head
Alexis (Poliorcetics) Bourget 2024-03-01 22:22:25 +07:00 committed by Wilfred Hughes
parent 3b049c2fd0
commit 1f79d16606
5 changed files with 17 additions and 0 deletions

@ -246,3 +246,16 @@ fn dump_syntax() {
.arg("sample_files/simple_after.js");
cmd.assert().success();
}
#[test]
fn walk_hidden_items() {
let mut cmd = get_base_command();
cmd.args(["sample_files/hidden-before", "sample_files/hidden-after"]);
let predicate_fn = predicate::str::contains(".hidden/doc.txt")
.and(predicate::str::contains(".hidden.txt"))
.and(predicate::str::contains("before"))
.and(predicate::str::contains("after"));
cmd.assert().stdout(predicate_fn);
}