summaryrefslogtreecommitdiffstats
path: root/tests/slots.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-28 22:46:47 +0100
committersalmonik <salmonik@tuta.io>2026-10-28 22:46:47 +0100
commit47d6c82a4943b1e804d062780b8e05f1e42f27b0 (patch)
tree11d0d557025118c7deb021eb9ad425fcc8b1e918 /tests/slots.rs
parentv0.3.0: add server core, bcrypt migration and plays audit (diff)
downloadzagan-bet-47d6c82a4943b1e804d062780b8e05f1e42f27b0.tar.gz
zagan-bet-47d6c82a4943b1e804d062780b8e05f1e42f27b0.zip
v0.3.1: clean up dependencies, stale tests and document verification
Diffstat (limited to 'tests/slots.rs')
-rw-r--r--tests/slots.rs8
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]
12fn three_of_a_kind_pays() { 12fn 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]
22fn two_adjacent_pays() { 22fn 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