예제 #1
0
 def test_min_is_correct_with_array(self):
     np.random.seed(0)
     x = np.random.uniform(size=[8])
     min_x = monte_carlo_manager._min(x)
     self.assertEqual(np.min(x), min_x)
예제 #2
0
 def test_min_is_correct_with_float(self):
     x = 0.1
     min_x = monte_carlo_manager._min(x)
     self.assertEqual(x, min_x)