import unittest
from ..domains import *
-from ..linexprs import symbols
+from ..linexprs import Symbol, symbols
from ..polyhedra import *
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)