diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-28 23:52:46 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-28 23:52:46 +0100 |
| commit | 7525fda5645e1e4debd79f3f4e0f453c657f49b7 (patch) | |
| tree | 95397031e0c7d4c2cd5c772ce682b1bbe9f481ab /tests | |
| parent | v1.3.0: simplify payouts to bet x symbol x shape (diff) | |
| download | zagan-bet-7525fda5645e1e4debd79f3f4e0f453c657f49b7.tar.gz zagan-bet-7525fda5645e1e4debd79f3f4e0f453c657f49b7.zip | |
v1.3.1: allow = to increase the bet
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/client_core.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/client_core.rs b/tests/client_core.rs index fd88566..4749d99 100644 --- a/tests/client_core.rs +++ b/tests/client_core.rs | |||
| @@ -172,6 +172,17 @@ fn spin_replaces_the_board_and_keeps_the_controls_line() { | |||
| 172 | } | 172 | } |
| 173 | 173 | ||
| 174 | #[test] | 174 | #[test] |
| 175 | fn equals_increases_the_bet_like_plus() { | ||
| 176 | let mut h = Harness::new(); | ||
| 177 | h.enter_slots("10"); | ||
| 178 | |||
| 179 | h.key(Key::Char('=')); | ||
| 180 | |||
| 181 | assert_eq!(h.board().len(), 10); | ||
| 182 | assert!(h.board()[1].contains("Bet: 20 PLN")); | ||
| 183 | } | ||
| 184 | |||
| 185 | #[test] | ||
| 175 | fn changing_the_bet_after_a_spin_does_not_leave_stale_lines() { | 186 | fn changing_the_bet_after_a_spin_does_not_leave_stale_lines() { |
| 176 | let mut h = Harness::new(); | 187 | let mut h = Harness::new(); |
| 177 | h.enter_slots("50"); | 188 | h.enter_slots("50"); |
