self.assertEqual(self.universe.project([]), self.universe)
self.assertEqual(self.empty.project([]), Empty)
self.assertEqual(self.universe.project([]), self.universe)
self.assertEqual(self.empty.project([]), Empty)
def test_sample(self):
self.assertEqual(self.square6.sample(), {Symbol('x'): 1, Symbol('y'): 3})
with self.assertRaises(ValueError):
def test_sample(self):
self.assertEqual(self.square6.sample(), {Symbol('x'): 1, Symbol('y'): 3})
with self.assertRaises(ValueError):
self.assertEqual(self.square1.lexmax(), self.lexmax)
self.assertEqual(self.universe.lexmax(), self.universe)
self.assertEqual(self.empty.lexmax(), Empty)
self.assertEqual(self.square1.lexmax(), self.lexmax)
self.assertEqual(self.universe.lexmax(), self.universe)
self.assertEqual(self.empty.lexmax(), Empty)
-
- def test_involves_vars(self):
- self.assertTrue(self.square1.involves_vars(symbols('x y')))
- self.assertFalse(self.empty.involves_vars(symbols('x')))
- self.assertFalse(self.universe.involves_vars(symbols('x')))