diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-28 22:46:47 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-28 22:46:47 +0100 |
| commit | 47d6c82a4943b1e804d062780b8e05f1e42f27b0 (patch) | |
| tree | 11d0d557025118c7deb021eb9ad425fcc8b1e918 /tests | |
| parent | v0.3.0: add server core, bcrypt migration and plays audit (diff) | |
| download | zagan-bet-47d6c82a4943b1e804d062780b8e05f1e42f27b0.tar.gz zagan-bet-47d6c82a4943b1e804d062780b8e05f1e42f27b0.zip | |
v0.3.1: clean up dependencies, stale tests and document verification
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/slots.rs | 8 | ||||
| -rw-r--r-- | tests/tofu.rs | 4 |
2 files changed, 4 insertions, 8 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 | ||
diff --git a/tests/tofu.rs b/tests/tofu.rs index 359c192..4f59d6d 100644 --- a/tests/tofu.rs +++ b/tests/tofu.rs | |||
| @@ -1,8 +1,4 @@ | |||
| 1 | //! TOFU trust tests. | 1 | //! TOFU trust tests. |
| 2 | //! | ||
| 3 | //! These pin the not-yet-implemented TOFU behavior: every test here is | ||
| 4 | //! expected to FAIL until the corresponding feature lands in `src/tofu.rs` | ||
| 5 | //! and the client storage layer. | ||
| 6 | 2 | ||
| 7 | use std::path::PathBuf; | 3 | use std::path::PathBuf; |
| 8 | use std::process::Command; | 4 | use std::process::Command; |
