def test_transform(self):
    spec = wrap(uniform(), (lambda x: (x * x)))
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.0, parsed.instantiate([0.0]))
    self.assertEqual(4.0, parsed.instantiate([2.0]))
def test_transform(self):
    spec = wrap(uniform(), (lambda x: (x * x)))
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.0, parsed.instantiate([0.0]))
    self.assertEqual(4.0, parsed.instantiate([2.0]))