From 7525fda5645e1e4debd79f3f4e0f453c657f49b7 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 28 Oct 2026 23:52:46 +0100 Subject: v1.3.1: allow = to increase the bet --- tests/client_core.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests') 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 @@ -171,6 +171,17 @@ fn spin_replaces_the_board_and_keeps_the_controls_line() { assert_eq!(h.screen.lines.len(), lines_before_spin); } +#[test] +fn equals_increases_the_bet_like_plus() { + let mut h = Harness::new(); + h.enter_slots("10"); + + h.key(Key::Char('=')); + + assert_eq!(h.board().len(), 10); + assert!(h.board()[1].contains("Bet: 20 PLN")); +} + #[test] fn changing_the_bet_after_a_spin_does_not_leave_stale_lines() { let mut h = Harness::new(); -- cgit v1.2.3