From 79f6caeaa8a2a43a0206b641e5f1bdddace62d3a Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Fri, 23 Oct 2026 16:41:18 +0800 Subject: [PATCH] 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. --- crates/ide-sdk/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide-sdk/src/tests.rs b/crates/ide-sdk/src/tests.rs index 4cac9ba4..d7492121 100644 --- a/crates/ide-sdk/src/tests.rs +++ b/crates/ide-sdk/src/tests.rs @@ -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.