Break: support arena_unique_id

This commit is contained in:
eigenein committed 2023-04-24 22:13:03 +02:00
1 parent e0ce6a22b1
commit 903cd00f32
2 files changed
+20 -10

No files matched your search

+4 -2
View File
@@ -5,8 +5,10 @@ use wotbreplay_parser::prelude::*;
#[test]
fn player_results_ok() -> Result<()> {
let battle_results = Replay::open(File::open("tests/replays/player_results.wotbreplay")?)?
.read_battle_results()?;
let battle_results_dat = Replay::open(File::open("tests/replays/player_results.wotbreplay")?)?
.read_battle_results_dat()?;
assert_eq!(battle_results_dat.arena_unique_id, 1661909200500084);
let battle_results = battle_results_dat.decode_battle_results()?;
let snak_the_ripper_info = &battle_results.player_results[3].info;
assert_eq!(snak_the_ripper_info.base_xp, 929);