diff options
Diffstat (limited to '')
| -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"); |
