diff options
| author | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
| commit | a2cbc04f86508708daa09affa5e9d73cc689b2ba (patch) | |
| tree | 0d0c6c7fbf4a775faaf5e9dd700157b883882638 /internal/casino/blackjack_test.go | |
| parent | adda27dba5bf7bf1dee62159f0cbc0bd90734751 (diff) | |
| download | thehouseoficarus-a2cbc04f86508708daa09affa5e9d73cc689b2ba.tar.gz | |
feat: new color 'command', color tag system implemented
Diffstat (limited to 'internal/casino/blackjack_test.go')
| -rw-r--r-- | internal/casino/blackjack_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/internal/casino/blackjack_test.go b/internal/casino/blackjack_test.go index 89b5d06..a6735c0 100644 --- a/internal/casino/blackjack_test.go +++ b/internal/casino/blackjack_test.go @@ -110,6 +110,21 @@ func TestBlackjackMenuEventCarriesStructuredMenu(t *testing.T) { if event.Menu == nil || event.Menu.Kind != MenuBlackjackBet { t.Fatalf("menu event=%+v", event.Menu) } + if len(event.Menu.Commands) != 3 || event.Menu.Commands[0].Command != "bet" || event.Menu.Commands[2].Command != "stop" { + t.Fatalf("bet menu commands=%+v", event.Menu.Commands) + } +} + +func TestBlackjackActionCommandsDescribeEachAction(t *testing.T) { + commands := blackjackActionCommands([]string{"hit", "stand", "double", "split", "surrender"}) + if len(commands) != 5 { + t.Fatalf("commands=%+v", commands) + } + for _, c := range commands { + if c.Desc == "" { + t.Fatalf("action %q missing a description", c.Command) + } + } } func TestBlackjackInsurancePaysOnDealerBlackjack(t *testing.T) { |
