From efccf58741ae43d9e891c6b743b146982b344ccf Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 3 Oct 2026 01:46:58 -0400 Subject: fix: don't show roulette table after each bet --- internal/game/roulette_animation_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'internal/game/roulette_animation_test.go') diff --git a/internal/game/roulette_animation_test.go b/internal/game/roulette_animation_test.go index 96f14bb..d7f5626 100644 --- a/internal/game/roulette_animation_test.go +++ b/internal/game/roulette_animation_test.go @@ -46,8 +46,14 @@ func TestRouletteSpinOutputHasNoPromptOrBlankLines(t *testing.T) { } } g.CasinoTick() - if !strings.Contains(string(conn.data), "The ball lands in") || g.rouletteSpinning(sess) { - t.Fatal("result did not end animation") + result := strings.ReplaceAll(string(conn.data), "\r\n", "\n") + if !strings.HasPrefix(result, "\nThe ball lands in") || g.rouletteSpinning(sess) { + t.Fatalf("result did not start on a blank line or end animation: %q", result) + } + // A resolved spin shows the result and the next-spin menu, but not the + // tracker, racetrack, and history again. + if strings.Contains(result, "History: last") { + t.Fatalf("settlement redrew the table board: %q", result) } sess.ClearPrompt() conn.data = nil -- cgit v1.2.3