From 9fb1f9010526100e12dd1ab1b0ca98401bb6ed75 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 10 Oct 2026 04:08:09 -0400 Subject: feat: add casino game: crazy time --- internal/casino/craps_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'internal/casino/craps_test.go') diff --git a/internal/casino/craps_test.go b/internal/casino/craps_test.go index 622e541..d453e06 100644 --- a/internal/casino/craps_test.go +++ b/internal/casino/craps_test.go @@ -422,3 +422,17 @@ func TestCrapsFailureRecoveryAndSnapshots(t *testing.T) { t.Fatal("unbet stranded queued departure") } } + +func TestCrapsBetOmitsWallet(t *testing.T) { + tb := crapsFixture() + tb.join("alice") + w := &testWallet{chips: 1000} + for _, e := range tb.bet("alice", "pass", 10, w) { + if e.ShowBalance || (e.Menu != nil && e.Menu.ShowBalance) { + t.Fatalf("craps bet printed the wallet: %+v", e) + } + } + if e := tb.reminder("alice"); e.Menu == nil || !e.Menu.ShowBalance { + t.Fatal("live craps state should still show the wallet") + } +} -- cgit v1.2.3