test: Count ignored names in the excluded-folders glob test (#8)

a66f01e adds files.ignoredNames to exclude_globs(), so the expected
length is file_excludes() + 1, not files.exclude + 1. The test failed on
every platform since.
This commit is contained in:
l0ng-ai
2026-10-23 16:41:18 +08:00
committed by GitHub
parent dbfe66a119
commit 79f6caeaa8
+1 -1
View File
@@ -174,7 +174,7 @@ fn excluded_folders_become_anchored_globs() {
s.project_structure.excluded = vec!["build/".into(), " ".into()];
let globs = s.exclude_globs();
assert!(globs.contains(&"/build".to_owned()));
assert_eq!(globs.len(), s.files.exclude.len() + 1);
assert_eq!(globs.len(), s.file_excludes().len() + 1);
}
/// Prints what this machine has installed.