Commits

Pierre Carbonnelle committed 71997e2

add test of prefixed literal in ask()

Comments (0)

Files changed (1)

pyDatalog/examples/test.py

     assert a.c == 'a'
     X, Y = pyDatalog.variables(2)
     assert (A.c[X]=='a') == [(a,)]
+    assert (pyDatalog.ask("A.c[X]=='a'")) == {(a,)}
     assert (A.c[X]=='a')[0] == (a,)
     assert list(X.data) == [a]
     assert X.v() == a