--- 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::<OutlineTemplate>::new();
+ let mut generator = MapGenerator::<OutlineTemplate>::new(Path::new(""));
generator.import_yaml_templates(&text);
assert!(generator