aboutsummaryrefslogtreecommitdiff
path: root/internal/game/video_poker_render_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-03 01:38:58 -0400
committerhistoria <[not public]>2026-10-03 01:38:58 -0400
commit0ec8f3692960a064616e630c914058298b22897b (patch)
tree2b51327eb66be7df8fdcd7c12cc306ca6fa84891 /internal/game/video_poker_render_test.go
parent82e571d227feeafd0af4011e701ce26b99c5e3d9 (diff)
downloadthehouseoficarus-0ec8f3692960a064616e630c914058298b22897b.tar.gz
feat: replaced roulette wheel graphic with line-by-line 'spin'
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, "♥") {