Spaces:
Runtime error
Runtime error
Commit ·
33bcfd6
1
Parent(s): e001fd4
test(cp1): pin EASY pre-roll length so the diagnostic gate can't pass vacuously
Browse files
tests/grid/test_predator_evade_behavior.py
CHANGED
|
@@ -27,7 +27,11 @@ def test_cut_handover_positions_are_deterministic():
|
|
| 27 |
|
| 28 |
|
| 29 |
def test_diagnostic_invariant_optimal_differs_from_habit_at_handover():
|
| 30 |
-
scenario, game,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
optimal = scenario.optimal_action(game)
|
| 32 |
habit = scenario.habit_action(game)
|
| 33 |
assert habit == "left" # the inertia: keep walking west into the dead-end
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
def test_diagnostic_invariant_optimal_differs_from_habit_at_handover():
|
| 30 |
+
scenario, game, cut = _build_at_handover()
|
| 31 |
+
# Pin the pre-roll length: habit_action reads _last_focal_move, which
|
| 32 |
+
# defaults to "left" in __init__, so habit=="left" could pass vacuously
|
| 33 |
+
# if the Cut never ran. Asserting cut makes "the pre-roll ran" explicit.
|
| 34 |
+
assert cut == 2, "EASY pre-roll length changed — re-verify layout"
|
| 35 |
optimal = scenario.optimal_action(game)
|
| 36 |
habit = scenario.habit_action(game)
|
| 37 |
assert habit == "left" # the inertia: keep walking west into the dead-end
|