This commit is contained in:
2025-11-12 22:22:33 +01:00
parent b43327626d
commit f2808192f7
3 changed files with 3 additions and 244 deletions
@@ -146,6 +146,7 @@ mod tests {
assert!(validate_game_file_path(base, "file with spaces.txt").is_ok());
assert!(validate_game_file_path(base, "./dot/./path.txt").is_ok());
#[allow(clippy::unwrap_used)]
let windows_style = validate_game_file_path(base, "mix\\windows\\path.txt").unwrap();
assert_eq!(
windows_style,
@@ -177,6 +178,7 @@ mod tests {
let temp_dir = TempDir::new().expect("Failed to create temp dir for test");
let base = temp_dir.path();
#[allow(clippy::unwrap_used)]
let resolved = validate_game_file_path(base, "new_dir/new_file.bin").unwrap();
assert_eq!(resolved, base.join("new_dir").join("new_file.bin"));
}