aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/video_poker_lifecycle_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/video_poker_lifecycle_test.go')
-rw-r--r--internal/casino/video_poker_lifecycle_test.go14
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)