prepared_files: the find test knows worldgen/structure is held now

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Ludovic MarieandClaude Opus 5.5 committed 2026-11-02 12:46:51 +01:00
1 parent eae6fc6366
commit 6691b009ad
1 file changed
+5 -1
+5 -1
View File
@@ -546,7 +546,11 @@ mod tests {
write(&root).unwrap();
let (_, rel) = find(&root.join("data/minecraft/recipe")).unwrap();
assert_eq!(rel, "data/minecraft/recipe");
assert!(find(&root.join("worldgen/structure")).is_none());
let (_, rel) = find(&root.join("worldgen/structure/minecraft")).unwrap();
assert_eq!(rel, "worldgen/structure/minecraft");
// The top-level tables beside the structures stay on the disk.
assert!(find(&root.join("worldgen")).is_none());
assert!(find(&root.join("worldgen/biomes.json")).is_none());
let _ = fs::remove_dir_all(&root);
}