def test_math_operations_2(self):
    spec = ((uniform() * ((uniform() ** 2) + 1)) / uniform())
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 3)
    self.assertEqual(2.0, parsed.instantiate([1.0, 1.0, 1.0]))
    self.assertEqual(1.0, parsed.instantiate([0.5, 1.0, 1.0]))
    self.assertEqual(1.0, parsed.instantiate([0.5, 0.0, 0.5]))
def test_math_operations_2(self):
    spec = ((uniform() * ((uniform() ** 2) + 1)) / uniform())
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 3)
    self.assertEqual(2.0, parsed.instantiate([1.0, 1.0, 1.0]))
    self.assertEqual(1.0, parsed.instantiate([0.5, 1.0, 1.0]))
    self.assertEqual(1.0, parsed.instantiate([0.5, 0.0, 0.5]))