aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/video_poker_regression_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/casino/video_poker_regression_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/casino/video_poker_regression_test.go')
-rw-r--r--internal/casino/video_poker_regression_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/casino/video_poker_regression_test.go b/internal/casino/video_poker_regression_test.go
index 634ebc9..90caf91 100644
--- a/internal/casino/video_poker_regression_test.go
+++ b/internal/casino/video_poker_regression_test.go
@@ -8,9 +8,8 @@ import (
func TestPokerEveryCabinetTierGameAndAward(t *testing.T) {
for cabinet, games := range cabinetGames {
- table, _, _ := pokerTestCabinet(t, VideoPokerConfig{Cabinet: cabinet})
for _, tier := range []string{"low", "normal", "full"} {
- table.action("alice", "payout "+tier)
+ table, _, _ := pokerTestCabinet(t, VideoPokerConfig{Cabinet: cabinet, Payout: tier})
for _, variant := range games {
events := table.action("alice", "game "+variant)
p := table.players["alice"]
@@ -32,12 +31,13 @@ func TestPokerEveryCabinetTierGameAndAward(t *testing.T) {
}
}
}
- }
- table.action("alice", "payout low")
- table.leave("alice")
- table.join("bob")
- if table.players["bob"].config.Payout != "low" {
- t.Fatal("machine tier changed with occupant")
+ // The authored tier is machine state, not a player setting: a new
+ // occupant inherits it unchanged.
+ table.leave("alice")
+ table.join("bob")
+ if table.players["bob"].config.Payout != tier {
+ t.Fatalf("%s/%s: tier changed with occupant", cabinet, tier)
+ }
}
}
}