# HG changeset patch # User unC0Rr # Date 1725454474 -7200 # Node ID 1b1d5729ff3e211b6a6466b6fc3694091887737b # Parent 842df792d6d636296866e96e3821260080e7eeb3 Fix test to match new yaml structure diff -r 842df792d6d6 -r 1b1d5729ff3e rust/mapgen/src/lib.rs --- a/rust/mapgen/src/lib.rs Thu Sep 05 21:33:51 2024 +0200 +++ b/rust/mapgen/src/lib.rs Wed Sep 04 14:54:34 2024 +0200 @@ -262,6 +262,7 @@ #[cfg(test)] mod tests { + use std::path::Path; use crate::{MapGenerator, OutlineTemplate, TemplateType}; use rand::thread_rng; @@ -294,10 +295,11 @@ - {x: 1023, y: 0} template_types: - test: [0] + test: + indices: [0] "#; - let mut generator = MapGenerator::::new(); + let mut generator = MapGenerator::::new(Path::new("")); generator.import_yaml_templates(&text); assert!(generator