Skip to content

Commit

Permalink
rust: Update some test paths
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Jan 24, 2025
1 parent f5133d3 commit 1c7d64b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rust/src/unity/asset_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ mod tests {

#[test]
fn test() {
let base_path = PathBuf::from_str("C:\\Users\\ifnsp\\dev\\noclip.website\\data\\AShortHike").unwrap();
let base_path = PathBuf::from_str("../data/AShortHike").unwrap();
let data = std::fs::read(&base_path.join("resources.assets")).unwrap();
let version = UnityVersion::V2021_3_27f1;
let mut asset_file = AssetFile::initialize_with_header_chunk(&data).unwrap();
Expand Down
8 changes: 5 additions & 3 deletions rust/src/wow/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -969,8 +969,9 @@ mod test {

#[test]
fn test_liquid_type() {
let d5 = std::fs::read("../data/wotlk/dbfilesclient/liquidtype.db2").unwrap();
let db: DatabaseTable<LiquidType> = DatabaseTable::new(&d5).unwrap();
let sheep_path = "../data/WorldOfWarcraft/sheep0";
let d4 = SheepfileManager::load_file_id_data(sheep_path, 1371380).unwrap(); // liquidTypes
let db: DatabaseTable<LiquidType> = DatabaseTable::new(&d4).unwrap();
dbg!(&db.get_record(20).unwrap().name);
dbg!(&db.get_record(21).unwrap().name);
dbg!(&db.get_record(22));
Expand All @@ -979,7 +980,8 @@ mod test {

#[test]
fn test_skybox() {
let d5 = std::fs::read("../data/wotlk/dbfilesclient/lightskybox.db2").unwrap();
let sheep_path = "../data/WorldOfWarcraft/sheep0";
let d5 = SheepfileManager::load_file_id_data(sheep_path, 1308501).unwrap(); // lightSkyboxData
let db: DatabaseTable<LightSkyboxRecord> = DatabaseTable::new(&d5).unwrap();
dbg!(&db.records[0..4]);
}
Expand Down

0 comments on commit 1c7d64b

Please sign in to comment.