changeset 645:7bde50132735

Don’t hardcode my home directory in tests.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 03 Aug 2019 22:44:36 +0200
parents f983a4c98410
children 7d92730bf543
files src/th06/anm0.rs src/th06/anm0_vm.rs src/th06/pbg3.rs
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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();
--- 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();
--- 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::<Vec<String>>();
@@ -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::<Vec<String>>();