Skip to content

Commit 80ce6b2

Browse files
committed
poker: correct test names
Aces can start (not end) a straight low Straights comparison is about ranks, no cascade.
1 parent ecbc931 commit 80ce6b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/practice/poker/tests/poker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ fn test_aces_can_end_a_straight_high() {
144144

145145
#[test]
146146
#[ignore]
147-
fn test_aces_can_end_a_straight_low() {
147+
fn test_aces_can_start_a_straight_low() {
148148
// aces can start a straight (A 2 3 4 5)
149149
test(&["4S 5H 4C 8D 4H", "4D AH 3S 2D 5C"], &["4D AH 3S 2D 5C"])
150150
}
151151

152152
#[test]
153153
#[ignore]
154-
fn test_straight_cascade() {
154+
fn test_straight_ranks() {
155155
// both hands with a straight, tie goes to highest ranked card
156156
test(&["4S 6C 7S 8D 5H", "5S 7H 8S 9D 6H"], &["5S 7H 8S 9D 6H"])
157157
}

0 commit comments

Comments
 (0)