Some minor updates to the heatmap stuff

This commit is contained in:
Lol3rrr
2024-09-30 15:47:45 +02:00
parent 16c5e41aed
commit de37b239aa
4 changed files with 89 additions and 50 deletions

View File

@@ -9,11 +9,9 @@ fn heatmap_nuke() {
let input_bytes = std::fs::read(path).unwrap();
let config = heatmap::Config { cell_size: 5.0 };
let (result, players) = heatmap::parse(&config, &input_bytes).unwrap();
let result = heatmap::parse(&config, &input_bytes).unwrap();
assert_eq!(result.len(), players.len());
todo!()
assert_eq!(result.player_heatmaps.len(), result.player_info.len());
}
#[test]
@@ -24,9 +22,7 @@ fn heatmap_inferno() {
let input_bytes = std::fs::read(path).unwrap();
let config = heatmap::Config { cell_size: 5.0 };
let (result, players) = heatmap::parse(&config, &input_bytes).unwrap();
let result = heatmap::parse(&config, &input_bytes).unwrap();
assert_eq!(result.len(), players.len());
todo!()
assert_eq!(result.player_heatmaps.len(), result.player_info.len(), "Players: {:?}", result.player_heatmaps.keys().collect::<Vec<_>>());
}