aboutsummaryrefslogtreecommitdiff
path: root/internal/game/video_poker_render_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/video_poker_render_test.go')
-rw-r--r--internal/game/video_poker_render_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/video_poker_render_test.go b/internal/game/video_poker_render_test.go
index 88c8474..1f76d60 100644
--- a/internal/game/video_poker_render_test.go
+++ b/internal/game/video_poker_render_test.go
@@ -100,7 +100,7 @@ func TestPokerResultsBelowCardsAndHoldStyle(t *testing.T) {
}
result := strings.Index(plain, text)
// The result starts its own line and follows the card/badge line.
- if result < 0 || result == 0 || plain[result-1] != '\n' {
+ if result <= 0 || strings.TrimSpace(plain[strings.LastIndex(plain[:result], "\n")+1:result]) != "" {
t.Fatalf("result not below cards: %s", plain)
}
if hands == 100 && !strings.Contains(plain, "♥") {