# HG changeset patch # User Emmanuel Gil Peyrot # Date 1564865076 -7200 # Node ID 7bde50132735bda9187ad03937eb45baaa939d53 # Parent f983a4c984109f0d081b26a9cda360fece64e369 Don’t hardcode my home directory in tests. diff --git a/src/th06/anm0.rs b/src/th06/anm0.rs --- a/src/th06/anm0.rs +++ b/src/th06/anm0.rs @@ -296,7 +296,7 @@ mod tests { #[test] fn anm0() { - let file = File::open("/home/linkmauve/games/pc/東方/TH06 ~ The Embodiment of Scarlet Devil/CM/player01.anm").unwrap(); + let file = File::open("EoSD/CM/player01.anm").unwrap(); let mut file = io::BufReader::new(file); let mut buf = vec![]; file.read_to_end(&mut buf).unwrap(); diff --git a/src/th06/anm0_vm.rs b/src/th06/anm0_vm.rs --- a/src/th06/anm0_vm.rs +++ b/src/th06/anm0_vm.rs @@ -414,7 +414,7 @@ mod tests { #[test] fn anm_runner() { - let file = File::open("/home/linkmauve/games/pc/東方/TH06 ~ The Embodiment of Scarlet Devil/CM/player01.anm").unwrap(); + let file = File::open("EoSD/CM/player01.anm").unwrap(); let mut file = io::BufReader::new(file); let mut buf = vec![]; file.read_to_end(&mut buf).unwrap(); diff --git a/src/th06/pbg3.rs b/src/th06/pbg3.rs --- a/src/th06/pbg3.rs +++ b/src/th06/pbg3.rs @@ -170,7 +170,7 @@ mod tests { #[test] fn file_present() { - let file = File::open("/home/linkmauve/games/pc/東方/TH06 ~ The Embodiment of Scarlet Devil/MD.DAT").unwrap(); + let file = File::open("EoSD/MD.DAT").unwrap(); let file = io::BufReader::new(file); let pbg3 = PBG3::from_file(file).unwrap(); let files = pbg3.list_files().cloned().collect::>(); @@ -179,7 +179,7 @@ mod tests { #[test] fn check_all_files() { - let file = File::open("/home/linkmauve/games/pc/東方/TH06 ~ The Embodiment of Scarlet Devil/MD.DAT").unwrap(); + let file = File::open("EoSD/MD.DAT").unwrap(); let file = io::BufReader::new(file); let mut pbg3 = PBG3::from_file(file).unwrap(); let files = pbg3.list_files().cloned().collect::>();