diff options
Diffstat (limited to 'tests/run.lua')
| -rw-r--r-- | tests/run.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run.lua b/tests/run.lua index 3095e6d..d5b97da 100644 --- a/tests/run.lua +++ b/tests/run.lua @@ -3803,6 +3803,19 @@ test("RepeatResolver reads the normalized contextual landing", function() end, "immutable") end) +test("Primary eligibility acquires for missing and different landings", function() + local _, transitions = fresh_sequence_state() + local resolver = repeat_resolver.new() + local current = domain.Position.new(2, 4) + + same(repeat_resolver.Decision.ACQUIRE, resolver:decide("n", current)) + + transitions:BeginAcquisition("n", "f") + transitions:CommitCommandSuccess("n", domain.Position.new(2, 5), true) + same(repeat_resolver.Decision.ACQUIRE, resolver:decide("n", current)) + same(nil, resolver:decide("n", domain.Position.new(2, 5))) +end) + for _, item in ipairs(tests) do local ok, failure = xpcall(item.body, debug.traceback) if not ok then |
