aboutsummaryrefslogtreecommitdiff
path: root/internal/game/look_casino_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-06 12:57:23 -0400
committerhistoria <[not public]>2026-10-06 12:57:23 -0400
commit9666676766bf21364f4fc4d0d1d336e72f2a91b4 (patch)
tree0cade34091d7602790dc38cd44053f0b74bbadf2 /internal/game/look_casino_test.go
parent4bc1daaf259e0c19c5fe4a12ec8bc7f6e5a735c1 (diff)
downloadthehouseoficarus-9666676766bf21364f4fc4d0d1d336e72f2a91b4.tar.gz
refactor: split casino.go, dedup helpers, remove audit docs
Diffstat (limited to 'internal/game/look_casino_test.go')
-rw-r--r--internal/game/look_casino_test.go8
1 files changed, 4 insertions, 4 deletions
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))