comparison src/th06/anm0.rs @ 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 01849ffd0180
children 3ff1af76e413
comparison
equal deleted inserted replaced
644:f983a4c98410 645:7bde50132735
294 use std::io::{self, Read}; 294 use std::io::{self, Read};
295 use std::fs::File; 295 use std::fs::File;
296 296
297 #[test] 297 #[test]
298 fn anm0() { 298 fn anm0() {
299 let file = File::open("/home/linkmauve/games/pc/東方/TH06 ~ The Embodiment of Scarlet Devil/CM/player01.anm").unwrap(); 299 let file = File::open("EoSD/CM/player01.anm").unwrap();
300 let mut file = io::BufReader::new(file); 300 let mut file = io::BufReader::new(file);
301 let mut buf = vec![]; 301 let mut buf = vec![];
302 file.read_to_end(&mut buf).unwrap(); 302 file.read_to_end(&mut buf).unwrap();
303 let anm0 = Anm0::from_slice(&buf).unwrap(); 303 let anm0 = Anm0::from_slice(&buf).unwrap();
304 assert_eq!(anm0.size, (256, 256)); 304 assert_eq!(anm0.size, (256, 256));