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)
def test_min_is_correct_with_float(self): x = 0.1 min_x = monte_carlo_manager._min(x) self.assertEqual(x, min_x)