Break: rename author_results into author and add author.account_id

This commit is contained in:
eigenein committed 2022-12-07 14:17:23 +01:00
1 parent d2fb61425a
commit e1d9c27bda
2 files changed
+9 -5

No files matched your search

+4 -3
View File
@@ -111,9 +111,10 @@ fn author_results_ok() -> Result<()> {
let battle_results = Replay::open(File::open("tests/replays/author_results.wotbreplay")?)?
.read_battle_results()?;
assert_eq!(battle_results.author_results.credits_earned, 53623);
assert_eq!(battle_results.author_results.combat_xp, 2370);
assert_eq!(battle_results.author_results.damage_dealt, 1738);
assert_eq!(battle_results.author.credits_earned, 53623);
assert_eq!(battle_results.author.combat_xp, 2370);
assert_eq!(battle_results.author.damage_dealt, 1738);
assert_eq!(battle_results.author.account_id, 594778041);
assert_eq!(battle_results.free_xp, 116);
Ok(())