Skip to content

Commit

Permalink
Implementing OnePair
Browse files Browse the repository at this point in the history
  • Loading branch information
davassi committed Sep 16, 2023
1 parent 5ed1a80 commit a84ee64
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/match_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,10 @@ mod test {
assert_rank!(hand!["Kd", "Kh", "Jc", "Js", "10d"], Rank::TwoPair);
assert_rank!(hand!["9d", "5h", "5c", "6s", "6d"], Rank::TwoPair);
}

#[test]
fn rank_one_pairs() {
assert_rank!(hand!["Kd", "Kh", "2c", "Js", "10d"], Rank::OnePair);
assert_rank!(hand!["9d", "5h", "5c", "3s", "6d"], Rank::OnePair);
}
}

0 comments on commit a84ee64

Please sign in to comment.