def test_disjoint(self):
self.assertEqual(self.square1.disjoint(), self.disjoint)
+ self.assertEqual(self.empty.disjoint(), Empty)
+ self.assertEqual(self.universe.disjoint(), self.universe)
def test_isempty(self):
self.assertFalse(self.square1.isempty())
self.assertTrue(self.empty.isempty())
+ self.assertFalse(self.universe.isempty())
def test_isuniverse(self):
self.assertFalse(self.square1.isuniverse())
def test_eq(self):
self.assertTrue(self.square1 == self.square1)
self.assertFalse(self.square1 == self.square2)
+ self.assertFalse(self.empty == self.universe)
def test_isdisjoint(self):
self.assertFalse(self.square1.isdisjoint(self.square2))
self.assertEqual(self.square1.lexmax(), self.lexmax)
self.assertEqual(self.universe.lexmax(), self.universe)
self.assertEqual(self.empty.lexmax(), Empty)
+
+ def test_num_parameters(self):
+ self.assertEqual(self.square1.num_parameters(), 2)
+ self.assertEqual(self.empty.num_parameters(), 0)
+ self.assertEqual(self.universe.num_parameters(), 0)
+
+ def test_involves_dims(self):
+ self.assertTrue(self.square1.involves_dims(symbols('x y')))
+ self.assertFalse(self.empty.involves_dims(symbols('x')))
+ self.assertFalse(self.universe.involves_dims(symbols('x')))