diff options
Diffstat (limited to 'internal/game/craps_variants_test.go')
| -rw-r--r-- | internal/game/craps_variants_test.go | 6 |
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) |
