diff options
| author | historia <[not public]> | 2026-10-02 14:43:26 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-02 14:43:26 -0400 |
| commit | 4f40f116ba884111c9a66849e620ff9fbc67530a (patch) | |
| tree | af407f199be482f9aac997d2cfaa0d86a806d8ff /internal/game/casino_rules_list_test.go | |
| parent | 62017c86392b046d746fb4fafef6742840477c5f (diff) | |
| download | thehouseoficarus-4f40f116ba884111c9a66849e620ff9fbc67530a.tar.gz | |
feat: compact craps layout, ux cleanup
Diffstat (limited to 'internal/game/casino_rules_list_test.go')
| -rw-r--r-- | internal/game/casino_rules_list_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/game/casino_rules_list_test.go b/internal/game/casino_rules_list_test.go index e83c277..f0c72d2 100644 --- a/internal/game/casino_rules_list_test.go +++ b/internal/game/casino_rules_list_test.go @@ -129,13 +129,17 @@ func TestListFollowsGameState(t *testing.T) { } } - // Establish a point: place/odds appear, bonus bets close. + // Establish a point: place/odds appear, bonus bets close. The roll is + // deliberately delayed, so advance the shared clock until it resolves. g.Casino.Action(1, "bank", "alice", "roll") + for i := 0; i < 5; i++ { + g.Casino.Tick() + } conn.data = nil g.executeList(sess, nil, "list") text = stripANSI(string(conn.data)) targets = listTargets(text) - if !targets["place 6"] || !targets["odds pass"] { + if !targets["place 6/8"] || !targets["odds pass / come"] { t.Fatalf("point list missing place/odds: %q", text) } if targets["fire"] { |
