From 0fcb03633e3008169173d76c8408f5410592b3eb Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 30 Sep 2026 05:33:45 -0400 Subject: feat: bank craps added to casino --- internal/casino/manager_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'internal/casino/manager_test.go') diff --git a/internal/casino/manager_test.go b/internal/casino/manager_test.go index a832d53..43bd67f 100644 --- a/internal/casino/manager_test.go +++ b/internal/casino/manager_test.go @@ -1,10 +1,14 @@ package casino -import "testing" +import ( + "fmt" + "testing" +) type testWallet struct { chips, credits, paid int open []Wager + seq int } func (w *testWallet) Wager(amount int) (Wager, error) { @@ -18,7 +22,8 @@ func (w *testWallet) Wager(amount int) (Wager, error) { w.chips -= chips credits := amount - chips w.credits -= credits - wager := Wager{Total: amount, Chips: chips, Credits: credits, ID: string(rune('a' + len(w.open)))} + w.seq++ + wager := Wager{Total: amount, Chips: chips, Credits: credits, ID: fmt.Sprintf("stake-%02d", w.seq)} w.open = append(w.open, wager) return wager, nil } -- cgit v1.2.3