mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-07 17:21:49 -10:00
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:
1 parent
eae6fc6366
commit
6691b009ad
1 file changed
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user