aboutsummaryrefslogtreecommitdiff
path: root/internal/game/render_roulette_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/render_roulette_test.go')
-rw-r--r--internal/game/render_roulette_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/game/render_roulette_test.go b/internal/game/render_roulette_test.go
index 90cee0c..e4fe650 100644
--- a/internal/game/render_roulette_test.go
+++ b/internal/game/render_roulette_test.go
@@ -25,7 +25,7 @@ func TestRouletteArtModes(t *testing.T) {
t.Run(fmt.Sprintf("%s/unicode=%v/double=%v", mode, unicode, double), func(t *testing.T) {
wheelOrder := casino.WheelOrder(double)
s := &casino.RouletteSnapshot{DoubleZero: double, Wheel: wheelOrder}
- for _, phase := range []string{"betting", "playing", "result"} {
+ for _, phase := range []string{"betting", "result"} {
s.Phase = phase
s.Pockets = [5]string{"25", "26", "0", "32", "15"}
art := renderRouletteSnapshot(s, mode, unicode, 7)
@@ -377,7 +377,7 @@ func TestRouletteEventColorsDoNotWrapArt(t *testing.T) {
// Use an emphatic blue background to detect whole-message color wrapping.
sess.Account = &player.Account{Colors: map[string]string{"casino_action": "0F bg:04 bold"}}
g.Casino.Join(1, casino.TableConfig{ID: "r", Game: casino.GameRoulette}, p.Name)
- e := casino.Event{RoomID: 1, TableID: "r", Message: "Spinning now", Color: "casino_action", Public: public, Snapshot: &casino.RouletteSnapshot{Phase: "playing", Players: []string{p.Name}}}
+ e := casino.Event{RoomID: 1, TableID: "r", Message: "Spinning now", Color: "casino_action", Public: public, Snapshot: &casino.RouletteSnapshot{Phase: "playing", SpinFrame: 1, Players: []string{p.Name}}}
if !public {
e.PrivateTo = p.Name
}
@@ -575,7 +575,6 @@ func TestRouletteWheelBlackAndSpacing(t *testing.T) {
phase string
want string
}{
- {"playing", renderRouletteWheel(casino.WheelOrder(false), "none", true)},
{"result", renderRouletteResult([5]string{"25", "26", "0", "32", "15"}, "none", true, 7)},
} {
s := &casino.RouletteSnapshot{Wheel: casino.WheelOrder(false), Phase: tc.phase, Pockets: [5]string{"25", "26", "0", "32", "15"}}