aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/baccarat_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-18 20:03:13 -0400
committerhistoria <[not public]>2026-09-18 20:03:13 -0400
commit79764732406d6484f67d3dec045483dcb5d08c28 (patch)
tree7a64e8581a540b97ed554f5723e2d587424ab1c6 /internal/casino/baccarat_test.go
parentf1e461ab6aec6b9bf056bbe2daa88a251e0f21da (diff)
downloadthehouseoficarus-79764732406d6484f67d3dec045483dcb5d08c28.tar.gz
feat: better card ascii art
Diffstat (limited to 'internal/casino/baccarat_test.go')
-rw-r--r--internal/casino/baccarat_test.go8
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)