X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/eb2eadbbeeaf00d7e2af18e6c8ee47602f96e528..29ed88d1a15d283ea6f3340a4dd97e8cc7c2d2d4:/pypol/tests/test_domains.py diff --git a/pypol/tests/test_domains.py b/pypol/tests/test_domains.py index 55853fd..e9dd1cd 100644 --- a/pypol/tests/test_domains.py +++ b/pypol/tests/test_domains.py @@ -1,7 +1,7 @@ import unittest from ..domains import * -from ..linexprs import symbols +from ..linexprs import Symbol, symbols from ..polyhedra import * @@ -78,10 +78,10 @@ class TestDomain(unittest.TestCase): self.assertEqual(self.square1.polyhedral_hull(), self.hull) def test_project_out(self): - self.assertEqual(self.square1.project_out('x'), self.dropped) - self.assertEqual(self.square1.project_out('x y'), self.universe) - self.assertEqual(self.universe.project_out(' '), self.universe) - self.assertEqual(self.empty.project_out(' '), Empty) + self.assertEqual(self.square1.project_out(symbols('x')), self.dropped) + self.assertEqual(self.square1.project_out(symbols('x y')), self.universe) + self.assertEqual(self.universe.project_out([]), self.universe) + self.assertEqual(self.empty.project_out([]), Empty) def test_simplify(self): self.assertEqual(self.universe.simplify(), self.universe)