diff options
| author | historia <[not public]> | 2026-10-03 01:46:58 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-03 01:46:58 -0400 |
| commit | efccf58741ae43d9e891c6b743b146982b344ccf (patch) | |
| tree | 505a068497c5531b91ac72da32db14145737e982 /internal/game/roulette_animation_test.go | |
| parent | 0ec8f3692960a064616e630c914058298b22897b (diff) | |
| download | thehouseoficarus-efccf58741ae43d9e891c6b743b146982b344ccf.tar.gz | |
fix: don't show roulette table after each bet
Diffstat (limited to 'internal/game/roulette_animation_test.go')
| -rw-r--r-- | internal/game/roulette_animation_test.go | 10 |
1 files changed, 8 insertions, 2 deletions
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 |
