Skip to content
Snippets Groups Projects
Commit 52e124acc1ed authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

add test for ticket #9042

parent ba227f0acace
No related branches found
No related tags found
No related merge requests found
...@@ -241,6 +241,17 @@ ...@@ -241,6 +241,17 @@
sols = sorted(node.children[0].solutions) sols = sorted(node.children[0].solutions)
self.assertEqual(sols, [{'X': 'Company'}, {'X': 'Person'}, {'X': 'Student'}]) self.assertEqual(sols, [{'X': 'Company'}, {'X': 'Person'}, {'X': 'Student'}])
def test_non_regr_no_final_type(self):
"""https://www.logilab.net/elo/ticket/9042"""
node = self.helper.parse('Any X WHERE X creation_date > ((2009 - 4) - 16)')
self.helper.compute_solutions(node, debug=DEBUG)
sols = sorted(node.children[0].solutions)
self.assertEqual(sols, [{'X': 'Address'},
{'X': 'Company'},
{'X': 'Eetype'},
{'X': 'Person'},
{'X': 'Student'}])
def test_is_instance_of_1(self): def test_is_instance_of_1(self):
node = self.helper.parse('Any X WHERE X is_instance_of Person') node = self.helper.parse('Any X WHERE X is_instance_of Person')
# check constant type of the is relation inserted # check constant type of the is relation inserted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment