mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-21 02:17:02 +02:00
Break: refactor the models
This commit is contained in:
1 parent
583ca024fc
commit
21206737c0
8 files changed
+83
-37
No files matched your search
@@ -5,9 +5,7 @@ use wotbreplay_parser::Replay;
|
||||
|
||||
#[test]
|
||||
fn battle_results_ok() -> Result<()> {
|
||||
let mut replay = Replay::open(File::open(
|
||||
"tests/replays/20221202_2259__zeekrab_It20_Car_Comb_45t_2308705958773814583.wotbreplay",
|
||||
)?)?;
|
||||
let mut replay = Replay::open(File::open("tests/replays/battle_results_ok.wotbreplay")?)?;
|
||||
let battle_results = replay.read_battle_results()?;
|
||||
|
||||
assert_eq!(battle_results.timestamp, 1670018359);
|
||||
|
||||
Reference in new issue
Block a user