Add inferno test demo
This commit is contained in:
@@ -11,12 +11,22 @@ fn heatmap_nuke() {
|
|||||||
let config = heatmap::Config { cell_size: 5.0 };
|
let config = heatmap::Config { cell_size: 5.0 };
|
||||||
let (result, players) = heatmap::parse(&config, &input_bytes).unwrap();
|
let (result, players) = heatmap::parse(&config, &input_bytes).unwrap();
|
||||||
|
|
||||||
for (user, mut heatmap) in result {
|
assert_eq!(result.len(), players.len());
|
||||||
heatmap.shrink();
|
|
||||||
|
todo!()
|
||||||
let image = heatmap.as_image();
|
}
|
||||||
image.save_with_format(format!("./heatmap_nuke-{}.png", user.0), image::ImageFormat::Png).unwrap();
|
|
||||||
}
|
#[test]
|
||||||
|
#[traced_test]
|
||||||
|
fn heatmap_inferno() {
|
||||||
|
let path = concat!(env!("CARGO_MANIFEST_DIR"), "/../testfiles/inferno.dem");
|
||||||
|
dbg!(path);
|
||||||
|
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();
|
||||||
|
|
||||||
|
assert_eq!(result.len(), players.len());
|
||||||
|
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
testfiles/inferno.dem
LFS
Normal file
BIN
testfiles/inferno.dem
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user