From cac16d1725c46c82a2e62b84c93f7090b2ce0746 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Fri, 2 Oct 2026 17:51:46 -0400 Subject: feat: craps table color improvements, die improvements --- internal/game/craps_variants_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/game/craps_variants_test.go') 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) -- cgit v1.2.3