mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-24 11:49:48 +02:00
💥 Improve the docs and error handling
This commit is contained in:
1 parent
838a49ee68
commit
c986abca5d
10 files changed
+58
-19
No files matched your search
@@ -20,7 +20,7 @@ use wotbreplay_parser::replay::Replay;
|
||||
fn main() -> Result<()> {
|
||||
let battle_results = Replay::open(File::open("replays/20221203_player_results.wotbreplay")?)?.read_battle_results()?;
|
||||
|
||||
assert_eq!(battle_results.timestamp, 1670083956);
|
||||
assert_eq!(battle_results.timestamp_secs, 1670083956);
|
||||
assert_eq!(battle_results.players.len(), 14);
|
||||
|
||||
assert_eq!(battle_results.players[0].account_id, 595693744);
|
||||
|
||||
Reference in new issue
Block a user