move test assets into test-assets/
i like this better than `assets/tests/`. meh.
This commit is contained in:
parent
9f60802d37
commit
142b03a39b
|
@ -334,7 +334,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_compressed_quest_58_bin() -> Result<(), QuestBinError> {
|
||||
let path = Path::new("assets/test/q058-ret-gc.bin");
|
||||
let path = Path::new("test-assets/q058-ret-gc.bin");
|
||||
let bin = QuestBin::from_compressed_file(&path)?;
|
||||
validate_quest_58_bin(&bin);
|
||||
Ok(())
|
||||
|
@ -342,7 +342,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_uncompressed_quest_58_bin() -> Result<(), QuestBinError> {
|
||||
let path = Path::new("assets/test/q058-ret-gc.uncompressed.bin");
|
||||
let path = Path::new("test-assets/q058-ret-gc.uncompressed.bin");
|
||||
let bin = QuestBin::from_uncompressed_file(&path)?;
|
||||
validate_quest_58_bin(&bin);
|
||||
Ok(())
|
||||
|
@ -350,7 +350,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_compressed_quest_118_bin() -> Result<(), QuestBinError> {
|
||||
let path = Path::new("assets/test/q118-vr-gc.bin");
|
||||
let path = Path::new("test-assets/q118-vr-gc.bin");
|
||||
let bin = QuestBin::from_compressed_file(&path)?;
|
||||
validate_quest_118_bin(&bin);
|
||||
Ok(())
|
||||
|
@ -358,7 +358,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_uncompressed_quest_118_bin() -> Result<(), QuestBinError> {
|
||||
let path = Path::new("assets/test/q118-vr-gc.uncompressed.bin");
|
||||
let path = Path::new("test-assets/q118-vr-gc.uncompressed.bin");
|
||||
let bin = QuestBin::from_uncompressed_file(&path)?;
|
||||
validate_quest_118_bin(&bin);
|
||||
Ok(())
|
||||
|
|
|
@ -517,7 +517,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_compressed_quest_58_dat() -> Result<(), QuestDatError> {
|
||||
let path = Path::new("assets/test/q058-ret-gc.dat");
|
||||
let path = Path::new("test-assets/q058-ret-gc.dat");
|
||||
let dat = QuestDat::from_compressed_file(&path)?;
|
||||
validate_quest_58_dat(&dat);
|
||||
Ok(())
|
||||
|
@ -525,7 +525,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_uncompressed_quest_58_dat() -> Result<(), QuestDatError> {
|
||||
let path = Path::new("assets/test/q058-ret-gc.uncompressed.dat");
|
||||
let path = Path::new("test-assets/q058-ret-gc.uncompressed.dat");
|
||||
let dat = QuestDat::from_uncompressed_file(&path)?;
|
||||
validate_quest_58_dat(&dat);
|
||||
Ok(())
|
||||
|
@ -533,7 +533,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_compressed_quest_118_dat() -> Result<(), QuestDatError> {
|
||||
let path = Path::new("assets/test/q118-vr-gc.dat");
|
||||
let path = Path::new("test-assets/q118-vr-gc.dat");
|
||||
let dat = QuestDat::from_compressed_file(&path)?;
|
||||
validate_quest_118_dat(&dat);
|
||||
Ok(())
|
||||
|
@ -541,7 +541,7 @@ pub mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_uncompressed_quest_118_dat() -> Result<(), QuestDatError> {
|
||||
let path = Path::new("assets/test/q118-vr-gc.uncompressed.dat");
|
||||
let path = Path::new("test-assets/q118-vr-gc.uncompressed.dat");
|
||||
let dat = QuestDat::from_uncompressed_file(&path)?;
|
||||
validate_quest_118_dat(&dat);
|
||||
Ok(())
|
||||
|
|
|
@ -534,10 +534,10 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_quest_58_qst_from_file() -> Result<(), QuestQstError> {
|
||||
let qst = QuestQst::from_file(Path::new("assets/test/q058-ret-gc.online.qst"))?;
|
||||
let qst = QuestQst::from_file(Path::new("test-assets/q058-ret-gc.online.qst"))?;
|
||||
validate_quest_58_qst(&qst, 1438, 15097, true)?;
|
||||
|
||||
let qst = QuestQst::from_file(Path::new("assets/test/q058-ret-gc.offline.qst"))?;
|
||||
let qst = QuestQst::from_file(Path::new("test-assets/q058-ret-gc.offline.qst"))?;
|
||||
validate_quest_58_qst(&qst, 1571, 15105, false)?;
|
||||
|
||||
Ok(())
|
||||
|
@ -545,10 +545,10 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn read_quest_118_qst_from_file() -> Result<(), QuestQstError> {
|
||||
let qst = QuestQst::from_file(Path::new("assets/test/q118-vr-gc.online.qst"))?;
|
||||
let qst = QuestQst::from_file(Path::new("test-assets/q118-vr-gc.online.qst"))?;
|
||||
validate_quest_118_qst(&qst, 14208, 11802, true)?;
|
||||
|
||||
let qst = QuestQst::from_file(Path::new("assets/test/q118-vr-gc.offline.qst"))?;
|
||||
let qst = QuestQst::from_file(Path::new("test-assets/q118-vr-gc.offline.qst"))?;
|
||||
validate_quest_118_qst(&qst, 14801, 11810, false)?;
|
||||
|
||||
Ok(())
|
||||
|
@ -556,8 +556,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn create_qst_from_quest_58_bindat_files() -> Result<(), QuestQstError> {
|
||||
let mut bin = QuestBin::from_compressed_file(Path::new("assets/test/q058-ret-gc.bin"))?;
|
||||
let dat = QuestDat::from_compressed_file(Path::new("assets/test/q058-ret-gc.dat"))?;
|
||||
let mut bin = QuestBin::from_compressed_file(Path::new("test-assets/q058-ret-gc.bin"))?;
|
||||
let dat = QuestDat::from_compressed_file(Path::new("test-assets/q058-ret-gc.dat"))?;
|
||||
|
||||
let qst = QuestQst::from_bindat(&bin, &dat)?;
|
||||
validate_quest_58_qst(&qst, 1565, 15507, true)?;
|
||||
|
@ -571,8 +571,8 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
pub fn create_qst_from_quest_118_bindat_files() -> Result<(), QuestQstError> {
|
||||
let mut bin = QuestBin::from_compressed_file(Path::new("assets/test/q118-vr-gc.bin"))?;
|
||||
let dat = QuestDat::from_compressed_file(Path::new("assets/test/q118-vr-gc.dat"))?;
|
||||
let mut bin = QuestBin::from_compressed_file(Path::new("test-assets/q118-vr-gc.bin"))?;
|
||||
let dat = QuestDat::from_compressed_file(Path::new("test-assets/q118-vr-gc.dat"))?;
|
||||
|
||||
let qst = QuestQst::from_bindat(&bin, &dat)?;
|
||||
validate_quest_118_qst(&qst, 14794, 12277, true)?;
|
||||
|
|
Loading…
Reference in a new issue