Launcher: rustfmt modpacks.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -241,8 +241,14 @@ mod tests {
|
|||||||
.map(|a| a.to_string_lossy().into_owned())
|
.map(|a| a.to_string_lossy().into_owned())
|
||||||
.collect();
|
.collect();
|
||||||
assert_eq!(args.len(), 4);
|
assert_eq!(args.len(), 4);
|
||||||
assert_eq!(Path::new(&args[1]), work.join("mods").join("a").join("carry"));
|
assert_eq!(
|
||||||
assert_eq!(Path::new(&args[3]), work.join("mods").join("b").join("carry"));
|
Path::new(&args[1]),
|
||||||
|
work.join("mods").join("a").join("carry")
|
||||||
|
);
|
||||||
|
assert_eq!(
|
||||||
|
Path::new(&args[3]),
|
||||||
|
work.join("mods").join("b").join("carry")
|
||||||
|
);
|
||||||
assert_eq!(cmd.get_current_dir(), Some(profile_home(&work).as_path()));
|
assert_eq!(cmd.get_current_dir(), Some(profile_home(&work).as_path()));
|
||||||
assert!(profile_home(&work).is_dir());
|
assert!(profile_home(&work).is_dir());
|
||||||
fs::remove_dir_all(&root).unwrap();
|
fs::remove_dir_all(&root).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user