Add basic analysis to generate heatmap

This commit is contained in:
Lol3rrr
2024-09-28 01:22:14 +02:00
parent 803c8e28b9
commit 7f23f4882d
6 changed files with 964 additions and 50 deletions

View File

@@ -2,10 +2,12 @@ use analysis::endofgame;
use pretty_assertions::assert_eq;
#[test]
fn nuke() {
let input_bytes = include_bytes!("../../testfiles/nuke.dem");
fn endofgame_nuke() {
let path = concat!(env!("CARGO_MANIFEST_DIR"), "/../testfiles/nuke.dem");
dbg!(path);
let input_bytes = std::fs::read(path).unwrap();
let result = endofgame::parse(input_bytes).unwrap();
let result = endofgame::parse(&input_bytes).unwrap();
let expected = endofgame::EndOfGame {
map: "de_nuke".to_owned(),