From 3f4a79613d027433736a673a9ccffe1985b104b4 Mon Sep 17 00:00:00 2001 From: Bart Schuurmans Date: Mon, 24 Jan 2022 11:46:15 +0100 Subject: [PATCH] Add failing test case for directory with ignored contents In git, the entire directory does not exist In gitignoresource, the empty directory does exist --- tests/testdata.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/testdata.nix b/tests/testdata.nix index 29a5100..af1b08e 100644 --- a/tests/testdata.nix +++ b/tests/testdata.nix @@ -54,6 +54,9 @@ let mkdir 12-empty-dir mkdir 12-not-empty-dir touch 12-not-empty-dir/just-a-regular-file + + mkdir 13-dir-with-ignored-contents + touches 13-dir-with-ignored-contents/{foo,bar} ); } create-tree "$1" @@ -106,6 +109,8 @@ let # two bracketed classes in one rule 7-brackets/*- [Bb]ackup ([0-9]).rdl + + 13-dir-with-ignored-contents/* ''; ignoresAux = "/9-expected/*filepath\n";