Commit 93971ca6cdd9584349d03d900f1c0b65375227c5

Steven King Jr 2019-03-15T13:08:18

ignore: add additional test cases

diff --git a/tests/status/ignore.c b/tests/status/ignore.c
index 7256fb7..a6045b8 100644
--- a/tests/status/ignore.c
+++ b/tests/status/ignore.c
@@ -1222,7 +1222,7 @@ void test_status_ignore__ignored_subdirfiles_with_subdir_rule(void)
 		NULL
 	};
 
-	make_test_data("empty_standard_repo", test_files);
+ 	make_test_data("empty_standard_repo", test_files);
 	cl_git_mkfile(
 		"empty_standard_repo/.gitignore",
 		"dir/*\n"
@@ -1230,6 +1230,8 @@ void test_status_ignore__ignored_subdirfiles_with_subdir_rule(void)
 
 	assert_is_ignored("dir/a.test");
 	assert_is_ignored("dir/sub1/a.test");
+	assert_is_ignored("dir/sub1/sub2");
+	assert_is_ignored("dir/sub1/sub2/b.test");
 }
 
 void test_status_ignore__ignored_subdirfiles_with_negations(void)
@@ -1241,13 +1243,13 @@ void test_status_ignore__ignored_subdirfiles_with_negations(void)
 		NULL
 	};
 
-	make_test_data("empty_standard_repo", test_files);
+ 	make_test_data("empty_standard_repo", test_files);
 	cl_git_mkfile(
 		"empty_standard_repo/.gitignore",
 		"dir/*\n"
 		"!dir/a.test\n");
 
-	refute_is_ignored("dir/a.test");
+ 	refute_is_ignored("dir/a.test");
 	assert_is_ignored("dir/b.test");
 	assert_is_ignored("dir/sub1/c.test");
 }