aboutsummaryrefslogtreecommitdiff
path: root/internal/game/casino_commands_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-30 17:30:00 -0400
committerhistoria <[not public]>2026-09-30 17:30:00 -0400
commit39ad552cb5f48c288e1d7a62e80ceb180882eae0 (patch)
tree50ec7474012db8dd092ed996d592591ec9425d39 /internal/game/casino_commands_test.go
parenta18bc0a38e3a90bcd91260d7abfef340f093a9bd (diff)
downloadthehouseoficarus-39ad552cb5f48c288e1d7a62e80ceb180882eae0.tar.gz
chore: remove dead casino code and fold duplicated menu/odds logic
Diffstat (limited to 'internal/game/casino_commands_test.go')
-rw-r--r--internal/game/casino_commands_test.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/game/casino_commands_test.go b/internal/game/casino_commands_test.go
index 7820650..0ae1593 100644
--- a/internal/game/casino_commands_test.go
+++ b/internal/game/casino_commands_test.go
@@ -102,14 +102,22 @@ func TestCasinoCompactHintsUseOnlyAvailableCommands(t *testing.T) {
}
func TestSimplifiedFeltSpacingAndNoIdlePrompt(t *testing.T) {
text := renderCrapsSnapshot(&casino.CrapsSnapshot{Variant: "simplified"}, "none", true)
+ for _, want := range []string{"DICE TOTAL", "NET PROFIT", "3 or 4", "1:1 (even money)", "10 or 11", "LOSE STAKE", "ONE ROLL", "stake back"} {
+ if !strings.Contains(text, want) {
+ t.Fatalf("missing %q: %s", want, text)
+ }
+ }
+ if strings.Contains(text, "WINS PAY 1:1") || strings.Contains(text, "COME-OUT") {
+ t.Fatal("stale simplified rules", text)
+ }
if strings.Contains(text, "Place a bet, then roll when ready.") {
t.Fatal(text)
}
rows := strings.Split(text, "\n")
for i, row := range rows {
if strings.Contains(row, "PASS ONLY") {
- if i+2 >= len(rows) || strings.Trim(rows[i+1], "│ ") != "" || !strings.HasPrefix(rows[i+2], "└") {
- t.Fatal("expected exactly one blank felt row", text)
+ if i+1 >= len(rows) || strings.Trim(rows[i+1], "│ ") != "" || !strings.HasPrefix(rows[i+2], "└") {
+ t.Fatal("expected exactly one blank footer row", text)
}
return
}