aboutsummaryrefslogtreecommitdiff
path: root/internal/game/casino_ux_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-02 17:51:46 -0400
committerhistoria <[not public]>2026-10-02 17:51:46 -0400
commitcac16d1725c46c82a2e62b84c93f7090b2ce0746 (patch)
treee54f6624bdeb47421587656757ef3ce4fd7ebb3f /internal/game/casino_ux_test.go
parent4f40f116ba884111c9a66849e620ff9fbc67530a (diff)
downloadthehouseoficarus-cac16d1725c46c82a2e62b84c93f7090b2ce0746.tar.gz
feat: craps table color improvements, die improvements
Diffstat (limited to 'internal/game/casino_ux_test.go')
-rw-r--r--internal/game/casino_ux_test.go15
1 files changed, 15 insertions, 0 deletions
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)
+ }
+ }
+}