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	Sat Aug 03 22:44:01 2019 +0200
+++ b/src/th06/anm0.rs	Sat Aug 03 22:44:36 2019 +0200
@@ -296,7 +296,7 @@
 
     #[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	Sat Aug 03 22:44:01 2019 +0200
+++ b/src/th06/anm0_vm.rs	Sat Aug 03 22:44:36 2019 +0200
@@ -414,7 +414,7 @@
 
     #[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	Sat Aug 03 22:44:01 2019 +0200
+++ b/src/th06/pbg3.rs	Sat Aug 03 22:44:36 2019 +0200
@@ -170,7 +170,7 @@
 
     #[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 @@
 
     #[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>>();