diff options
Diffstat (limited to 'tests/slots.rs')
| -rw-r--r-- | tests/slots.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/slots.rs b/tests/slots.rs index df4af28..3035800 100644 --- a/tests/slots.rs +++ b/tests/slots.rs | |||
| @@ -11,9 +11,9 @@ fn make_game() -> SlotsGame { | |||
| 11 | #[test] | 11 | #[test] |
| 12 | fn three_of_a_kind_pays() { | 12 | fn three_of_a_kind_pays() { |
| 13 | let game = make_game(); | 13 | let game = make_game(); |
| 14 | // CCC = 5x | 14 | // CCC = 2x |
| 15 | assert_eq!(game.calculate_payout(&['C', 'C', 'C'], 100), 200); | 15 | assert_eq!(game.calculate_payout(&['C', 'C', 'C'], 100), 200); |
| 16 | // SSS = 100x | 16 | // SSS = 28x |
| 17 | assert_eq!(game.calculate_payout(&['S', 'S', 'S'], 10), 280); | 17 | assert_eq!(game.calculate_payout(&['S', 'S', 'S'], 10), 280); |
| 18 | } | 18 | } |
| 19 | 19 | ||
| @@ -21,9 +21,9 @@ fn three_of_a_kind_pays() { | |||
| 21 | #[test] | 21 | #[test] |
| 22 | fn two_adjacent_pays() { | 22 | fn two_adjacent_pays() { |
| 23 | let game = make_game(); | 23 | let game = make_game(); |
| 24 | // CC? = 2x | 24 | // CC? = 1x |
| 25 | assert_eq!(game.calculate_payout(&['C', 'C', 'D'], 100), 100); | 25 | assert_eq!(game.calculate_payout(&['C', 'C', 'D'], 100), 100); |
| 26 | // ?LL = 3x | 26 | // ?LL = 1x |
| 27 | assert_eq!(game.calculate_payout(&['D', 'L', 'L'], 50), 50); | 27 | assert_eq!(game.calculate_payout(&['D', 'L', 'L'], 50), 50); |
| 28 | } | 28 | } |
| 29 | 29 | ||
