mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-18 00:15:44 +00:00
naming: fail display guard when a source root is missing
This commit is contained in:
1 parent
172e56f12e
commit
6272c9a4da
1 file changed
+3
-1
@@ -147,7 +147,9 @@ fn production_display_names_stay_neutral() {
|
||||
let base = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
let mut failures = Vec::new();
|
||||
for root in ROOTS {
|
||||
check_tree(&base.join(root), &mut failures);
|
||||
let path = base.join(root);
|
||||
assert!(path.exists(), "guard source root must exist: {}", path.display());
|
||||
check_tree(&path, &mut failures);
|
||||
}
|
||||
assert!(failures.is_empty(), "Banned display names:\n{}", failures.join("\n"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user