Skip to content

Commit

Permalink
Additional placeholder test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuce committed Oct 26, 2024
1 parent 61f91e3 commit c445b42
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_prolog.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ def test_retract(self):
result = list(Prolog.query("person(X)"))
self.assertEqual([], result)

def test_placeholder_2(self):
joe = Atom("joe")
ids = [1, 2, 3]
Prolog.assertz("user(%p,%p)", joe, ids)
result = list(Prolog.query("user(%p, IDs)", joe))
self.assertEqual([{'IDs': [1, 2, 3]}], result)


format_prolog_fixture = [
("", (), ""),
Expand Down

0 comments on commit c445b42

Please sign in to comment.