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_regression_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_regression_test.go')
| -rw-r--r-- | internal/casino/video_poker_regression_test.go | 16 |
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) + } } } } |
