Skip to content

Commit c445b42

Browse files
committed
Additional placeholder test
1 parent 61f91e3 commit c445b42

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_prolog.py

+7
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ def test_retract(self):
124124
result = list(Prolog.query("person(X)"))
125125
self.assertEqual([], result)
126126

127+
def test_placeholder_2(self):
128+
joe = Atom("joe")
129+
ids = [1, 2, 3]
130+
Prolog.assertz("user(%p,%p)", joe, ids)
131+
result = list(Prolog.query("user(%p, IDs)", joe))
132+
self.assertEqual([{'IDs': [1, 2, 3]}], result)
133+
127134

128135
format_prolog_fixture = [
129136
("", (), ""),

0 commit comments

Comments
 (0)