def test_transform_merge(self):
    spec = wrap(merge([uniform(), uniform()], (lambda x, y: (x + y))), (lambda x: (x * x)))
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 2)
    self.assertEqual(1.0, parsed.instantiate([0.0, 1.0]))
    self.assertEqual(4.0, parsed.instantiate([1.0, 1.0]))
def test_transform_merge(self):
    spec = wrap(merge([uniform(), uniform()], (lambda x, y: (x + y))), (lambda x: (x * x)))
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 2)
    self.assertEqual(1.0, parsed.instantiate([0.0, 1.0]))
    self.assertEqual(4.0, parsed.instantiate([1.0, 1.0]))