I don't know about the tests but it seems they are not used.
I tried running them locally: `python -m pytest ./tests/test_scripts.py` worked but `python -m pytest ./tests/test_normalization.py` failed with this error:
E AssertionError: assert 'Atom @object... =(?Z, ?Z@2).' == 'Atom @object... =(?Z, ?Z@2).'
E Skipping 421 identical leading characters in diff, use -v to show
E - ?Y, ?Z, ?Y, ?Z), Atom =(?Y, ?Y@0), Atom =(?Y, ?Y@1), Atom =(?Z, ?Z@2).
E + ?Y, ?Z, ?Y@1, ?Z@2), Atom =(?Y, ?Y@0), Atom =(?Y, ?Y@1), Atom =(?Z, ?Z@2).
E ? ++ ++
As far as I can tell, this if caused by the rule
prog.add_rule(Rule([pddl.Atom("p", ["?Y", "?Z", "?Y", "?Z"])], pddl.Atom("q", ["?Y", "?Y"])))
where we expect "Atom p(?Y, ?Z, ?Y, ?Z)" in the body, but get "Atom p(?Y, ?Z, ?Y@1, ?Z@2)". Here are the full rules with extra spaces for alignment:
EXPECTED: none Atom q(?Y, ?Y@0) :- Atom p(?Y, ?Z, ?Y , ?Z ), Atom =(?Y, ?Y@0), Atom =(?Y, ?Y@1), Atom =(?Z, ?Z@2).
GOT: none Atom q(?Y, ?Y@0) :- Atom p(?Y, ?Z, ?Y@1, ?Z@2), Atom =(?Y, ?Y@0), Atom =(?Y, ?Y@1), Atom =(?Z, ?Z@2).
With the equality conditions in the end, this actually looks OK to me.
|