From adda27dba5bf7bf1dee62159f0cbc0bd90734751 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 3 Aug 2026 16:42:59 -0400 Subject: fix: blackjack game formatting --- internal/game/casino_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'internal/game/casino_test.go') diff --git a/internal/game/casino_test.go b/internal/game/casino_test.go index d7b5ae9..0394437 100644 --- a/internal/game/casino_test.go +++ b/internal/game/casino_test.go @@ -36,12 +36,11 @@ func TestExecuteBetRejectsInvalidMachineArgs(t *testing.T) { t.Fatalf("bet %v: expected usage error, got %q", args, string(conn.data)) } } - // A bare bet at a machine reaches the spin path instead of erroring. - g.Casino.SetMachineBet(1, "slots", "alice", 10) + // A bet amount at a machine sets the wager and immediately spins. conn.data = nil - g.executeBet(sess, nil, "bet") + g.executeBet(sess, []string{"10"}, "bet 10") if !strings.Contains(string(conn.data), "You don't have enough chips and credits") { - t.Fatalf("bare bet should attempt a spin, got %q", string(conn.data)) + t.Fatalf("bet 10 should attempt an auto-spin and fail at the empty wallet, got %q", string(conn.data)) } } -- cgit v1.2.3