From c445b42310751d20ac48070f52d796997346804c Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Sat, 26 Oct 2024 22:01:10 +0300 Subject: [PATCH] Additional placeholder test --- tests/test_prolog.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_prolog.py b/tests/test_prolog.py index f32ea0f..996ecd3 100644 --- a/tests/test_prolog.py +++ b/tests/test_prolog.py @@ -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 = [ ("", (), ""),