diff options
| author | historia <[not public]> | 2026-10-10 04:08:09 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-10 04:08:09 -0400 |
| commit | 9fb1f9010526100e12dd1ab1b0ca98401bb6ed75 (patch) | |
| tree | 4a128211bfb0dd429bbb559a591d6c4be25c7757 /internal/casino/craps_test.go | |
| parent | ced77d7c89129da6ba4001ab8e3dad265aa41396 (diff) | |
| download | thehouseoficarus-main.tar.gz | |
Diffstat (limited to 'internal/casino/craps_test.go')
| -rw-r--r-- | internal/casino/craps_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
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") + } +} |
