aboutsummaryrefslogtreecommitdiff
path: root/internal/game/craps_variants_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-02 17:51:46 -0400
committerhistoria <[not public]>2026-10-02 17:51:46 -0400
commitcac16d1725c46c82a2e62b84c93f7090b2ce0746 (patch)
treee54f6624bdeb47421587656757ef3ce4fd7ebb3f /internal/game/craps_variants_test.go
parent4f40f116ba884111c9a66849e620ff9fbc67530a (diff)
downloadthehouseoficarus-cac16d1725c46c82a2e62b84c93f7090b2ce0746.tar.gz
feat: craps table color improvements, die improvements
Diffstat (limited to 'internal/game/craps_variants_test.go')
-rw-r--r--internal/game/craps_variants_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/craps_variants_test.go b/internal/game/craps_variants_test.go
index 46f5be6..c538caa 100644
--- a/internal/game/craps_variants_test.go
+++ b/internal/game/craps_variants_test.go
@@ -34,7 +34,7 @@ func TestCrapsVariantRendering(t *testing.T) {
t.Fatal("dice rendered instead of cards")
}
} else {
- if strings.Contains(plain, "FIRE") || strings.Contains(plain, "ALL SMALL") {
+ if strings.Contains(plain, "FIRE") || strings.Contains(plain, "SMALL") {
t.Fatal(v, "unsupported bonus display")
}
}
@@ -59,8 +59,8 @@ func TestCrapsVariantRendering(t *testing.T) {
}
for n := 1; n <= 6; n++ {
text := renderCrapsDice([2]int{n, 0}, "none", false)
- if strings.Count(text, "+-------+") != 2 {
- t.Fatal("single die needs a top and bottom outline", text)
+ if strings.Count(text, "\n") != 5 {
+ t.Fatal("single die needs three pip rows and two caps", text)
}
if got := strings.Count(strings.ReplaceAll(text, "Total:", ""), "o"); got != n {
t.Fatalf("single die %d rendered %d pips", n, got)