aboutsummaryrefslogtreecommitdiff
path: root/internal/game/video_poker_cabinet_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-01 05:05:11 -0400
committerhistoria <[not public]>2026-10-01 05:05:11 -0400
commitd4eae333a8d8a96452bbf3617aa85b50466c11a7 (patch)
tree90d4cf075fe5467b35e5cc53ff3ee30fc4ee1feb /internal/game/video_poker_cabinet_test.go
parent299b5b67aa80ba2539d7a91c60943060b0426b45 (diff)
downloadthehouseoficarus-d4eae333a8d8a96452bbf3617aa85b50466c11a7.tar.gz
feat: concise table/machine names, casino command shortcuts, remove payout video poker command
Diffstat (limited to 'internal/game/video_poker_cabinet_test.go')
-rw-r--r--internal/game/video_poker_cabinet_test.go21
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()