aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cash_hunt_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 17:05:14 -0400
committerhistoria <[not public]>2026-10-05 17:05:14 -0400
commite42952469dadfb3535633c66c881050ac128703c (patch)
treea78f7396b72cdbd6fa4f6c454c830f40cf2ad0cb /internal/game/cash_hunt_test.go
parent90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (diff)
downloadthehouseoficarus-e42952469dadfb3535633c66c881050ac128703c.tar.gz
fix: gather verbs, walk oom, admin path bypass, roulette refund
Diffstat (limited to 'internal/game/cash_hunt_test.go')
-rw-r--r--internal/game/cash_hunt_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cash_hunt_test.go b/internal/game/cash_hunt_test.go
index 78d3e38..ded4ea0 100644
--- a/internal/game/cash_hunt_test.go
+++ b/internal/game/cash_hunt_test.go
@@ -25,7 +25,7 @@ func TestCashHuntCommandsAndReceipt(t *testing.T) {
g.executeBet(s, []string{"1"}, "bet 1")
text := string(conn.data)
preview, hidden := strings.Index(text, "PRIZE PREVIEW"), strings.Index(text, "hidden and mixed")
- if preview < 0 || hidden <= preview || !strings.Contains(text, cashHuntCenter("100", cashHuntTileWidth)) || len(s.Player.PendingWagers) != 1 {
+ if preview < 0 || hidden <= preview || !strings.Contains(text, cashHuntCenter("100")) || len(s.Player.PendingWagers) != 1 {
t.Fatalf("preview/shuffle sequence missing: %s", text)
}
if table.Busy(s.Player.Name) {
@@ -155,7 +155,7 @@ func TestCashHuntBoardRendering(t *testing.T) {
}
start := 1 + col*(cashHuntTileWidth+1)
got := string(numberRunes[start : start+cashHuntTileWidth])
- if want := cashHuntCenter(label, cashHuntTileWidth); got != want {
+ if want := cashHuntCenter(label); got != want {
t.Fatalf("square %d label: got %q want %q", square, got, want)
}
}
@@ -191,7 +191,7 @@ func TestCashHuntBoardRendering(t *testing.T) {
t.Fatal("grid characters should be darkened")
}
// 0x is not a prize: it stays dim and is never bold.
- if !strings.Contains(board, cashHuntCenter("0x", cashHuntTileWidth)) {
+ if !strings.Contains(board, cashHuntCenter("0x")) {
t.Fatal("0x prize missing")
}
if strings.Contains(rendered, "\x1b[1m"+color.FgCode("xterm256", 237)) {