Commits

Pierre Carbonnelle committed f9854fc

test of calculated field.

Comments (0)

Files changed (2)

pyDatalog/examples/test.py

 
     Employee.indirect_manager(Mary, X)
     assert (X.v() == John) # prints [Employee: John]
+    
+    Mary.salary_class = ((Employee.salary_class[Mary]==X) >= X)
+    Mary.salary = 10000
+    assert Mary.salary_class != ((Employee.salary_class[Mary]==X) >= X)
 
     print("Test completed successfully.")
 
-cd "C:\Users\pcarbonn\Documents\98 Eclipse\pyDatalog"
 rem please check version number before uploading on Pypi
 pause
-rem please check 'import' statement
-pause
+cd "C:\Users\pcarbonn\Documents\98 Eclipse\pyDatalog\build\lib"
+del *.*
+cd "C:\Users\pcarbonn\Documents\98 Eclipse\pyDatalog"
 setup.py register sdist bdist_wininst upload
 pause