From b47140c554b345a934698a04a2a8c0e64685ed17 Mon Sep 17 00:00:00 2001 From: Vivien Maisonneuve Date: Tue, 1 Jul 2014 18:32:54 +0200 Subject: [PATCH 1/1] Let's test complement, not compliment --- pypol/tests/test_domains.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pypol/tests/test_domains.py b/pypol/tests/test_domains.py index 0e06771..692627c 100644 --- a/pypol/tests/test_domains.py +++ b/pypol/tests/test_domains.py @@ -19,7 +19,7 @@ class TestDomain(unittest.TestCase): self.universe = Polyhedron([]) self.empty = Empty self.disjoint = And(Ge(x, 0), Ge(-x + 2, 0), Ge(y, 0), Ge(-y + 2, 0)) - self.compliment = Or(Ge(-x - 1, 0), Ge(x - 3, 0), And(Ge(x, 0), Ge(-x + 2, 0), Ge(-y - 1, 0)), And(Ge(x, 0), Ge(-x + 2, 0), Ge(y - 3, 0))) + self.complement = Or(Ge(-x - 1, 0), Ge(x - 3, 0), And(Ge(x, 0), Ge(-x + 2, 0), Ge(-y - 1, 0)), And(Ge(x, 0), Ge(-x + 2, 0), Ge(y - 3, 0))) self.hull = And(Ge(x, 0), Ge(-x + 2, 0), Ge(y, 0), Ge(-y + 2, 0)) self.dropped = And(Ge(y, 0), Ge(-y + 2, 0)) self.sample = And(Eq(y - 3, 0), Eq(x - 1, 0)) @@ -71,8 +71,8 @@ class TestDomain(unittest.TestCase): self.assertTrue(self.square4 < self.square3) self.assertFalse(self.square3 < self.square4) - def test_compliment(self): - self.assertEqual(~self.square1, self.compliment) + def test_complement(self): + self.assertEqual(~self.square1, self.complement) def test_polyhedral_hull(self): self.assertEqual(self.square1.polyhedral_hull(), self.hull) -- 2.20.1