diff options
| author | historia <[not public]> | 2026-10-01 05:05:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-01 05:05:11 -0400 |
| commit | d4eae333a8d8a96452bbf3617aa85b50466c11a7 (patch) | |
| tree | 90d4cf075fe5467b35e5cc53ff3ee30fc4ee1feb /internal/casino/video_poker_lifecycle_test.go | |
| parent | 299b5b67aa80ba2539d7a91c60943060b0426b45 (diff) | |
| download | thehouseoficarus-d4eae333a8d8a96452bbf3617aa85b50466c11a7.tar.gz | |
feat: concise table/machine names, casino command shortcuts, remove payout video poker command
Diffstat (limited to 'internal/casino/video_poker_lifecycle_test.go')
| -rw-r--r-- | internal/casino/video_poker_lifecycle_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/casino/video_poker_lifecycle_test.go b/internal/casino/video_poker_lifecycle_test.go index 3107a93..f817225 100644 --- a/internal/casino/video_poker_lifecycle_test.go +++ b/internal/casino/video_poker_lifecycle_test.go @@ -199,20 +199,20 @@ func TestPokerHoldToggleAndMultiHand(t *testing.T) { t.Fatal("seat not released") } } -func TestPokerGameAndPayoutSwitching(t *testing.T) { - table, w, _ := pokerTestCabinet(t, VideoPokerConfig{Cabinet: CabinetClassic}) +func TestPokerGameSwitching(t *testing.T) { + table, w, _ := pokerTestCabinet(t, VideoPokerConfig{Cabinet: CabinetClassic, Payout: "low"}) p := table.players["alice"] + // Payout is house-owned: the retired verb no longer changes the schedule. + if !table.action("alice", "payout full")[0].MessageStarts("Use bet") || p.config.Payout != "low" { + t.Fatal("payout action still changes the schedule") + } if !table.action("alice", "game jacks")[0].Snapshot.(*VideoPokerSnapshot).ShowPayTable { t.Fatal("explicit switch did not show the pay table") } table.action("alice", "game ddb") - if p.config.Variant != "double_double_bonus" || p.config.PayTable != "10/6" { + if p.config.Variant != "double_double_bonus" || p.config.PayTable != "8/5" { t.Fatalf("alias switch: %+v", p.config) } - table.action("alice", "payout low") - if p.config.PayTable != "8/5" { - t.Fatalf("tier not applied to the current game: %+v", p.config) - } table.action("alice", "game joker") if p.config.PayTable != "50/15/7/5/3" { t.Fatalf("tier lost switching to joker: %+v", p.config) |
