From cac16d1725c46c82a2e62b84c93f7090b2ce0746 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 2 Oct 2026 17:51:46 -0400 Subject: feat: craps table color improvements, die improvements --- internal/game/casino_ux_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'internal/game/casino_ux_test.go') diff --git a/internal/game/casino_ux_test.go b/internal/game/casino_ux_test.go index 1a06f89..c83db27 100644 --- a/internal/game/casino_ux_test.go +++ b/internal/game/casino_ux_test.go @@ -228,3 +228,18 @@ func TestRebetRepeatsWager(t *testing.T) { t.Fatalf("rebet did not target banker: %q", stripANSI(string(conn.data))) } } + +// TestCasinoTimeTextUsesTicks pins the presentation unit: authored "N ticks" +// deadlines display as "Nt" rather than being rewritten into seconds. +func TestCasinoTimeTextUsesTicks(t *testing.T) { + g := &Game{} + for in, want := range map[string]string{ + "Your turn | 25 ticks remaining": "Your turn | 25t remaining", + "Betting closes in 5 ticks.": "Betting closes in 5t.", + "no deadline here": "no deadline here", + } { + if got := g.casinoTimeText(in); got != want { + t.Fatalf("casinoTimeText(%q) = %q, want %q", in, got, want) + } + } +} -- cgit v1.2.3