def test_min_2(self):
    spec = min(uniform(), 0.8, 0.5)
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.5, parsed.instantiate([1.0]))
    self.assertEqual(0.5, parsed.instantiate([0.5]))
    self.assertEqual(0.2, parsed.instantiate([0.2]))
def test_min_2(self):
    spec = min(uniform(), 0.8, 0.5)
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertEqual(0.5, parsed.instantiate([1.0]))
    self.assertEqual(0.5, parsed.instantiate([0.5]))
    self.assertEqual(0.2, parsed.instantiate([0.2]))