diff options
| author | historia <[not public]> | 2026-10-02 17:51:46 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 17:51:46 -0400 |
| commit | cac16d1725c46c82a2e62b84c93f7090b2ce0746 (patch) | |
| tree | e54f6624bdeb47421587656757ef3ce4fd7ebb3f /internal/game/casino_ux_test.go | |
| parent | 4f40f116ba884111c9a66849e620ff9fbc67530a (diff) | |
| download | thehouseoficarus-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.go | 15 |
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) + } + } +} |
