added unbounded test, deleted unused cvariable
[linpy.git] / pypol / tests / test_domains.py
index e31d8e7..27d9014 100644 (file)
@@ -14,7 +14,7 @@ class TestDomain(unittest.TestCase):
         self.square2 = Polyhedron(inequalities=[x - 1, 3 - x , y - 1, 3 - y]) #correct representation
         self.square3 = Polyhedron(inequalities=[x, 3 - x, y, 3 - y])
         self.square4 = Polyhedron(inequalities=[x - 1, 2 - x, y - 1, 2 - y])
         self.square2 = Polyhedron(inequalities=[x - 1, 3 - x , y - 1, 3 - y]) #correct representation
         self.square3 = Polyhedron(inequalities=[x, 3 - x, y, 3 - y])
         self.square4 = Polyhedron(inequalities=[x - 1, 2 - x, y - 1, 2 - y])
-        self.square5 = Polyhedron(inequalities=[x, 3 - x, y, 3 - y])
+        self.square5 = Polyhedron(inequalities=[x, 3 - x, y])
         self.square6 = Polyhedron(inequalities=[x - 3, 6 - x, y - 3, 6 -y])
         self.universe = Polyhedron([])
         self.disjoint = And(Ge(x, 0), Ge(-x + 2, 0), Ge(y, 0), Ge(-y + 2, 0))
         self.square6 = Polyhedron(inequalities=[x - 3, 6 - x, y - 3, 6 -y])
         self.universe = Polyhedron([])
         self.disjoint = And(Ge(x, 0), Ge(-x + 2, 0), Ge(y, 0), Ge(-y + 2, 0))
@@ -45,9 +45,9 @@ class TestDomain(unittest.TestCase):
 
     def test_isbounded(self):
         self.assertTrue(self.square1.isbounded())
 
     def test_isbounded(self):
         self.assertTrue(self.square1.isbounded())
+        self.assertFalse(self.square5.isbounded())
 
     def test_eq(self):
 
     def test_eq(self):
-        self.assertTrue(self.square3.__eq__(self.square5))
         self.assertTrue(self.square1.__eq__(self.square1))
         self.assertFalse(self.square1.__eq__(self.square2))
     
         self.assertTrue(self.square1.__eq__(self.square1))
         self.assertFalse(self.square1.__eq__(self.square2))