added tests for parsing ModdedInstance

This commit is contained in:
2026-03-15 17:33:22 +01:00
parent 41e261bb15
commit 74df0d1cc1
5 changed files with 249 additions and 2 deletions

View File

@@ -46,6 +46,11 @@ fn parse_complex() {
assert!(
config
.mod_by_id("mod1")
.is_some_and(|e| e.path().ends_with("mods/mod1"))
.is_some_and(|e| e.path() == "/home/user/mods/mod1")
);
assert!(
config
.mod_by_id("mod2")
.is_some_and(|e| e.path().ends_with("mod2"))
);
}