aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cash_hunt_test.go
diff options
context:
space:
mode:
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)) {