diff options
Diffstat (limited to 'internal/casino/baccarat_test.go')
| -rw-r--r-- | internal/casino/baccarat_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/casino/baccarat_test.go b/internal/casino/baccarat_test.go index 41f5acf..49e8fdd 100644 --- a/internal/casino/baccarat_test.go +++ b/internal/casino/baccarat_test.go @@ -150,8 +150,8 @@ func TestBaccaratSoloBetDealsImmediately(t *testing.T) { // The round event carries a snapshot of both hands and the bets. var snapshot *BaccaratSnapshot for _, event := range events { - if event.Baccarat != nil { - snapshot = event.Baccarat + if s, ok := event.Snapshot.(*BaccaratSnapshot); ok { + snapshot = s } } if snapshot == nil || len(snapshot.Player) != 2 || len(snapshot.Banker) != 2 || @@ -354,8 +354,8 @@ func TestBaccaratMenuAndActions(t *testing.T) { menu = event.Menu } } - if menu == nil || menu.Kind != MenuBaccaratBet { - t.Fatalf("join menu=%+v, want MenuBaccaratBet", menu) + if menu == nil || !menu.ShowBalance || menu.Heading != "New baccarat hand! Place your bet." { + t.Fatalf("join menu=%+v, want a baccarat betting menu", menu) } if len(menu.Commands) != 3 || menu.Commands[0].Command != "bet <amount>" || menu.Commands[2].Command != "stop" { t.Fatalf("baccarat menu commands=%+v", menu.Commands) |
