From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/game/look_casino_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 d53e02d..f48ba89 100644 --- a/internal/game/look_casino_test.go +++ b/internal/game/look_casino_test.go @@ -33,7 +33,7 @@ func TestLookCasinoTableDetailsAndBoards(t *testing.T) { // Craps: details only. The graphical felt and the full rule dump are gone. conn.data = nil - if !g.lookCrapsTable(sess, "craps") { + if !g.lookCasinoTable(sess, "craps", casino.GameCraps) { t.Fatal("look craps did not match") } text := stripANSI(string(conn.data)) @@ -50,7 +50,7 @@ func TestLookCasinoTableDetailsAndBoards(t *testing.T) { // Roulette: details plus the live wheel (tracker, layout, and history). conn.data = nil - if !g.lookRouletteTable(sess, "roulette") { + if !g.lookCasinoTable(sess, "roulette", casino.GameRoulette) { t.Fatal("look roulette did not match") } text = stripANSI(string(conn.data)) @@ -78,7 +78,7 @@ func TestLookCasinoTableAliasesAndFeltGames(t *testing.T) { t.Fatalf("look %s missing %q: %s", target, want, text) } } - if g.lookCrapsTable(sess, "bj") { + if g.lookCasinoTable(sess, "bj", casino.GameCraps) { t.Fatal("look craps matched a blackjack target") } } @@ -88,7 +88,7 @@ func TestLookCasinoUsesLiveNormalizedConfig(t *testing.T) { // defaults EnsureTable fills in, not zero values. g, sess, conn := casinoCrapsGame(t, "name: Bare\ncasino_tables:\n - id: wheel\n game: roulette\n") conn.data = nil - if !g.lookRouletteTable(sess, "wheel") { + if !g.lookCasinoTable(sess, "wheel", casino.GameRoulette) { t.Fatal("look by fixture id did not match") } text := stripANSI(string(conn.data)) -- cgit v1.2.3