diff options
| author | historia <[not public]> | 2026-10-02 02:16:44 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 02:16:44 -0400 |
| commit | 62017c86392b046d746fb4fafef6742840477c5f (patch) | |
| tree | eab569e29e858ff79b8ce06caa9bacb28bc9ee81 /internal/game/pai_gow_test.go | |
| parent | d3a305d1d7962f82af2397760cf8008758bddd1d (diff) | |
| download | thehouseoficarus-62017c86392b046d746fb4fafef6742840477c5f.tar.gz | |
feat: polish 'list' output, drop sitout command
Diffstat (limited to 'internal/game/pai_gow_test.go')
| -rw-r--r-- | internal/game/pai_gow_test.go | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/internal/game/pai_gow_test.go b/internal/game/pai_gow_test.go index f0440b7..5ba367e 100644 --- a/internal/game/pai_gow_test.go +++ b/internal/game/pai_gow_test.go @@ -300,17 +300,23 @@ func TestPaiGowContextHintsFollowState(t *testing.T) { g, sess, conn := casinoCrapsGame(t, "name: Pai Gow\ncasino_tables:\n - id: fortune\n game: paigow\n min_bet: 5\n max_bet: 1000\n pai_gow:\n envy: true\n") g.executePlay(sess, []string{"pai"}, "play pai") - // A fresh bettor is told about the side bet and the main wager, plus the - // shared tail. - conn.data = nil - g.executeTableStatus(sess, nil, "table") + // The join menu carries the context hints: the side bet, the main wager, + // and the shared tail. text := stripANSI(string(conn.data)) for _, want := range []string{"bet <amount> fortune", "bet <amount>", "table", "rules", "stop"} { if !strings.Contains(text, want) { - t.Fatalf("missing %q at a fresh table: %s", want, text) + t.Fatalf("missing %q in the join menu: %s", want, text) } } + // The table command shows only the felt, without the hint menu. + conn.data = nil + g.executeTableStatus(sess, nil, "table") + text = stripANSI(string(conn.data)) + if !strings.Contains(text, "PAI GOW POKER") || strings.Contains(text, "bet <amount>") { + t.Fatalf("table should be the felt alone: %s", text) + } + // A lone main wager deals immediately; the live menu moves to setting. conn.data = nil g.executeBet(sess, []string{"20"}, "bet 20") |
