diff options
Diffstat (limited to 'internal/game/video_poker_cabinet_test.go')
| -rw-r--r-- | internal/game/video_poker_cabinet_test.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/game/video_poker_cabinet_test.go b/internal/game/video_poker_cabinet_test.go index a327bce..0e46c82 100644 --- a/internal/game/video_poker_cabinet_test.go +++ b/internal/game/video_poker_cabinet_test.go @@ -120,6 +120,27 @@ func TestPokerCorruptBankRefusesDeal(t *testing.T) { } } +// TestVestaVideoPokerPayoutTiers pins the authored tiering: the parlor, high-limit +// and VIP rooms each hold the full cabinet set at one house-set payout, and no +// player command can change it. +func TestVestaVideoPokerPayoutTiers(t *testing.T) { + _, rooms, _ := loadVesta(t) + for id, tier := range map[int]string{6192: "low", 6193: "normal", 6194: "full"} { + r, ok := rooms[id] + if !ok { + t.Fatalf("missing video poker room %d", id) + } + if len(r.CasinoTables) != 5 { + t.Fatalf("room %d has %d cabinets, want the full set of 5", id, len(r.CasinoTables)) + } + for _, cfg := range r.CasinoTables { + if cfg.Game != casino.GameVideoPoker || cfg.VideoPoker.Payout != tier { + t.Fatalf("room %d/%s = %s/%s, want video_poker/%s", id, cfg.ID, cfg.Game, cfg.VideoPoker.Payout, tier) + } + } + } +} + func TestPokerInterruptedTransactionRecovery(t *testing.T) { g, sess, _ := casinoCrapsGame(t, uxTestRoom) g.DataDir = t.TempDir() |
