diff options
Diffstat (limited to 'internal/game/look_casino_test.go')
| -rw-r--r-- | internal/game/look_casino_test.go | 13 |
1 files changed, 7 insertions, 6 deletions
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) } } |
