X-Git-Url: https://svn.cri.ensmp.fr/git/linpy.git/blobdiff_plain/0da8076d0fb7aab6c4cb61b55db4fcf3a916f588..fd990941199581e977b4455345b55f841bbaa05a:/pypol/tests/test_domains.py diff --git a/pypol/tests/test_domains.py b/pypol/tests/test_domains.py index e31d8e7..27d9014 100644 --- a/pypol/tests/test_domains.py +++ b/pypol/tests/test_domains.py @@ -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.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)) @@ -45,9 +45,9 @@ class TestDomain(unittest.TestCase): def test_isbounded(self): self.assertTrue(self.square1.isbounded()) + self.assertFalse(self.square5.isbounded()) 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))