Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
atomflunder committed Aug 26, 2022
1 parent cfa3a7f commit b0ca250
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/weng_lin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,19 @@ mod tests {
Outcomes::DRAW,
&WengLinConfig::new(),
);
let (normal_player, _) = weng_lin(
normal_player,
opponent_two,
Outcomes::LOSS,
&WengLinConfig::new(),
);

let rating_player = weng_lin_rating_period(
player,
&vec![
(opponent_one, Outcomes::WIN),
(opponent_two, Outcomes::DRAW),
(opponent_two, Outcomes::LOSS),
],
&WengLinConfig::new(),
);
Expand Down

0 comments on commit b0ca250

Please sign in to comment.