wip
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user