def test_normal(self):
    spec = normal()
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertAlmostEqual((- 1.0), parsed.instantiate([0.1587]), delta=0.001)
    self.assertAlmostEqual((- 0.5), parsed.instantiate([0.3085]), delta=0.001)
    self.assertAlmostEqual(0.0, parsed.instantiate([0.5]), delta=0.001)
    self.assertAlmostEqual(0.7, parsed.instantiate([0.758]), delta=0.001)
    self.assertAlmostEqual(0.9, parsed.instantiate([0.8159]), delta=0.001)
def test_normal(self):
    spec = normal()
    parsed = ParsedSpec(spec)
    self.assertEqual(parsed.size(), 1)
    self.assertAlmostEqual((- 1.0), parsed.instantiate([0.1587]), delta=0.001)
    self.assertAlmostEqual((- 0.5), parsed.instantiate([0.3085]), delta=0.001)
    self.assertAlmostEqual(0.0, parsed.instantiate([0.5]), delta=0.001)
    self.assertAlmostEqual(0.7, parsed.instantiate([0.758]), delta=0.001)
    self.assertAlmostEqual(0.9, parsed.instantiate([0.8159]), delta=0.001)