1 parent 1da26b4 commit 6ff43e4Copy full SHA for 6ff43e4
1 file changed
tests/test_logic_derivation.py
@@ -43,7 +43,7 @@ def one_step_trace(pack, fact, rule):
43
domain_pack=pack,
44
)
45
res = chase(theory)
46
- target = rule.head
+ target = next(atom for atom in res.closure if atom not in theory.facts)
47
trace = canonical_trace(theory, res, {fact: 0, rule: 1}, target)
48
assert trace.unique
49
return trace.answer
0 commit comments