aboutsummaryrefslogtreecommitdiff
path: root/internal/game/look_casino_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-03 01:46:58 -0400
committerhistoria <[not public]>2026-10-03 01:46:58 -0400
commitefccf58741ae43d9e891c6b743b146982b344ccf (patch)
tree505a068497c5531b91ac72da32db14145737e982 /internal/game/look_casino_test.go
parent0ec8f3692960a064616e630c914058298b22897b (diff)
downloadthehouseoficarus-efccf58741ae43d9e891c6b743b146982b344ccf.tar.gz
fix: don't show roulette table after each bet
Diffstat (limited to 'internal/game/look_casino_test.go')
-rw-r--r--internal/game/look_casino_test.go13
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)
}
}