aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/command_hints_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/command_hints_test.go')
-rw-r--r--internal/casino/command_hints_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/casino/command_hints_test.go b/internal/casino/command_hints_test.go
index 1de70bd..353d292 100644
--- a/internal/casino/command_hints_test.go
+++ b/internal/casino/command_hints_test.go
@@ -31,7 +31,7 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) {
if !hintBet(commands) || !hintHas(commands, "stop") {
t.Fatal(v, "missing idle actions", commands)
}
- for _, c := range []string{"roll", "autoroll", "unbet <target> / unbet all"} {
+ for _, c := range []string{"roll", "autoroll", "unbet"} {
if hintHas(commands, c) {
t.Fatal(v, "idle", c)
}
@@ -44,7 +44,7 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) {
if v == "simplified" {
// Simplified craps rolls by itself: no manual shooting actions
// while the pass contract is live.
- if hintHas(commands, "roll") || hintHas(commands, "autoroll") || hintHas(commands, "unbet <target> / unbet all") || hintBet(commands) {
+ if hintHas(commands, "roll") || hintHas(commands, "autoroll") || hintHas(commands, "unbet") || hintBet(commands) {
t.Fatal(v, "manual actions", commands)
}
if !hintHas(commands, "stop") {
@@ -52,7 +52,7 @@ func TestCrapsHintsFollowPlayerState(t *testing.T) {
}
continue
}
- if !hintHas(commands, "roll") || !hintHas(commands, "autoroll") || hintHas(commands, "unbet <target> / unbet all") {
+ if !hintHas(commands, "roll") || !hintHas(commands, "autoroll") || hintHas(commands, "unbet") {
t.Fatal(v, "contract actions", commands)
}
if !tb.Config.Craps.allows("buy") && hintBet(commands) {
@@ -80,19 +80,19 @@ func TestCrapsHintsOnlyOfferRemovableWagers(t *testing.T) {
w := &testWallet{chips: 1000}
tb.bet("a", "pass", 10, w)
tb.resolveRoll(2, 2)
- if hintHas(tb.commands("a"), "unbet <target> / unbet all") {
+ if hintHas(tb.commands("a"), "unbet") {
t.Fatal("contract removable")
}
tb.bet("a", "odds pass", 10, w)
- if !hintHas(tb.commands("a"), "unbet <target> / unbet all") {
+ if !hintHas(tb.commands("a"), "unbet") {
t.Fatal("odds not removable")
}
- tb.action("a", "unbet odds pass")
- if hintHas(tb.commands("a"), "unbet <target> / unbet all") {
+ tb.action("a", "unbet")
+ if hintHas(tb.commands("a"), "unbet") {
t.Fatal("removed odds still advertised")
}
tb.bet("a", "place 6", 12, w)
- if !hintHas(tb.commands("a"), "unbet <target> / unbet all") {
+ if !hintHas(tb.commands("a"), "unbet") {
t.Fatal("place removal missing")
}
}