aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/craps_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-10 04:08:09 -0400
committerhistoria <[not public]>2026-10-10 04:08:09 -0400
commit9fb1f9010526100e12dd1ab1b0ca98401bb6ed75 (patch)
tree4a128211bfb0dd429bbb559a591d6c4be25c7757 /internal/casino/craps_test.go
parentced77d7c89129da6ba4001ab8e3dad265aa41396 (diff)
downloadthehouseoficarus-main.tar.gz
feat: add casino game: crazy timeHEADmain
Diffstat (limited to 'internal/casino/craps_test.go')
-rw-r--r--internal/casino/craps_test.go14
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")
+ }
+}