Fix test to match new yaml structure transitional_engine
authorunC0Rr
Wed, 04 Sep 2024 14:54:34 +0200
branchtransitional_engine
changeset 16060 1b1d5729ff3e
parent 16059 842df792d6d6
child 16061 31cc1e450273
Fix test to match new yaml structure
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::<OutlineTemplate>::new();
+        let mut generator = MapGenerator::<OutlineTemplate>::new(Path::new(""));
         generator.import_yaml_templates(&text);
 
         assert!(generator