extern crate tw_pack_lib; use std::fs::File; use std::path::Path; use tw_pack_lib::PFHVersion; use tw_pack_lib::PFHFlags; use tw_pack_lib::PFHFileType; #[test] fn test_build_pfh5_pack() { tw_pack_lib::build_pack_from_filesystem(&Path::new(&"tests/build/loadingscreen"), &mut File::create(Path::new("tests/build/loadingscreen_test.pack")).unwrap(), PFHVersion::PFH5, PFHFlags::HAS_BIG_HEADER, PFHFileType::Mod, 42, &["test1.pack".to_owned(), "test2.pack".to_owned()]).unwrap() }