diff options
Diffstat (limited to 'internal/casino/craps_clock_test.go')
| -rw-r--r-- | internal/casino/craps_clock_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/casino/craps_clock_test.go b/internal/casino/craps_clock_test.go index 97758f8..3a68bf8 100644 --- a/internal/casino/craps_clock_test.go +++ b/internal/casino/craps_clock_test.go @@ -236,14 +236,14 @@ func TestCrapsUnbetAllAndRollTableFormat(t *testing.T) { tb.bet("alice", "odds pass", 20, w) tb.bet("alice", "place 4", 10, w) tb.bet("alice", "field", 10, w) - before := w.paid + before := w.chips events := tb.action("alice", "unbet") text := crapsEventText(events) if !strings.Contains(text, "take down {casino_chips}40{/}") || !strings.Contains(text, "contracts stay up") { t.Fatal(text) } - if w.paid != before+40 { - t.Fatal("refund amount", w.paid-before) + if w.chips != before+40 { + t.Fatal("in-kind refund amount", w.chips-before) } bets := tb.players.get("alice").bets if len(bets) != 2 || bets[0].kind != "fire" || bets[1].kind != "pass" || bets[1].odds.Total != 0 { @@ -253,8 +253,8 @@ func TestCrapsUnbetAllAndRollTableFormat(t *testing.T) { t.Fatal("pass and fire stakes must stay pending", w.open) } tb.action("alice", "unbet") - if w.paid != before+40 { - t.Fatal("second unbet all moved money", w.paid) + if w.chips != before+40 { + t.Fatal("second unbet all moved money", w.chips) } // Roll outcome line: every total once, single-level tags only. tb2 := crapsFixture() |
