Ensure 222 beats AAKK
Implementations that add values for pairs could have higher values than low three of a kinds.
@@ -115,6 +115,12 @@ fn test_three_of_a_kind_ranks() {
test(&["2S 2H 2C 8D JH", "4S AH AS 8C AD"], &["4S AH AS 8C AD"])
}
+#[test]
+#[ignore]
+fn test_low_three_of_a_kind_beats_high_two_pair() {
+ test(&["2H 2D 2C 8H 5H", "AS AC KS KC 6S"], &["2H 2D 2C 8H 5H"])
+}
+
#[test]
#[ignore]
fn test_three_of_a_kind_cascade_ranks() {
