Fix formatting and add score/team info to endofgame

This commit is contained in:
Lol3rrr
2024-10-14 20:15:25 +02:00
parent 29e3e461e4
commit 6f255faeb3
5 changed files with 230 additions and 57621 deletions

View File

@@ -11,6 +11,24 @@ fn endofgame_nuke() {
let expected = endofgame::EndOfGame {
map: "de_nuke".to_owned(),
teams: [
(
3,
endofgame::TeamInfo {
name: "CT".to_owned(),
score: 8,
},
),
(
2,
endofgame::TeamInfo {
name: "TERRORIST".to_owned(),
score: 13,
},
),
]
.into_iter()
.collect(),
players: vec![
(
endofgame::PlayerInfo {
@@ -199,8 +217,5 @@ fn endofgame_nuke() {
],
};
// TODO
// Add stats for rest of players
assert_eq!(result, expected);
}