mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-21 02:17:02 +02:00
19 lines
448 B
Rust
19 lines
448 B
Rust
#![cfg(feature = "meta")]
|
|
|
|
use std::fs::File;
|
|
|
|
use anyhow::Result;
|
|
use wotbreplay_parser::prelude::*;
|
|
|
|
#[test]
|
|
fn meta_ok() -> Result<()> {
|
|
let meta = Replay::open(File::open("tests/replays/player_results.wotbreplay")?)?.read_meta()?;
|
|
|
|
assert_eq!(meta.player_name, "zeekrab");
|
|
assert_eq!(meta.arena_unique_id, "1661909200500084");
|
|
assert_eq!(meta.battle_duration_secs, 164.08485);
|
|
assert_eq!(meta.tank_id, 26657);
|
|
|
|
Ok(())
|
|
}
|