Skip to content

Commit 6ff43e4

Browse files
committed
Fix grounded trace fixtures
1 parent 1da26b4 commit 6ff43e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_logic_derivation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def one_step_trace(pack, fact, rule):
4343
domain_pack=pack,
4444
)
4545
res = chase(theory)
46-
target = rule.head
46+
target = next(atom for atom in res.closure if atom not in theory.facts)
4747
trace = canonical_trace(theory, res, {fact: 0, rule: 1}, target)
4848
assert trace.unique
4949
return trace.answer

0 commit comments

Comments
 (0)