From efccf58741ae43d9e891c6b743b146982b344ccf Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 3 Oct 2026 01:46:58 -0400 Subject: fix: don't show roulette table after each bet --- internal/game/look_casino_test.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'internal/game/look_casino_test.go') diff --git a/internal/game/look_casino_test.go b/internal/game/look_casino_test.go index 37205cd..651c74f 100644 --- a/internal/game/look_casino_test.go +++ b/internal/game/look_casino_test.go @@ -28,7 +28,7 @@ casino_tables: envy: true ` -func TestLookCasinoTableShowsDetailsWithoutInvariantBoards(t *testing.T) { +func TestLookCasinoTableDetailsAndBoards(t *testing.T) { g, sess, conn := casinoCrapsGame(t, lookCasinoRoom) // Craps: details only. The graphical felt and the full rule dump are gone. @@ -48,7 +48,7 @@ func TestLookCasinoTableShowsDetailsWithoutInvariantBoards(t *testing.T) { } } - // Roulette: details only, no betting board or payout reference. + // Roulette: details plus the live wheel (tracker, layout, and history). conn.data = nil if !g.lookRouletteTable(sess, "roulette") { t.Fatal("look roulette did not match") @@ -57,10 +57,11 @@ func TestLookCasinoTableShowsDetailsWithoutInvariantBoards(t *testing.T) { if !strings.Contains(text, "Roulette / Single zero") || !strings.Contains(text, "single-zero wheel") { t.Fatalf("look roulette missing variant summary: %s", text) } - for _, gone := range []string{"Roulette payouts", "History: last"} { - if strings.Contains(text, gone) { - t.Fatalf("look roulette showed invariant board %q: %s", gone, text) - } + if !strings.Contains(text, "History: last") { + t.Fatalf("look roulette missing the live board: %s", text) + } + if strings.Contains(text, "Roulette payouts") { + t.Fatalf("look roulette still dumps the payout reference: %s", text) } } -- cgit v1.2.3