diff --git a/code-experiments/build/python/test/test_function.py b/code-experiments/build/python/test/test_function.py index 39c32ca4f..30d80b11f 100644 --- a/code-experiments/build/python/test/test_function.py +++ b/code-experiments/build/python/test/test_function.py @@ -17,18 +17,14 @@ def test_bbob(): for instance in [0, 1, 10, 100, 1000]: fn = BenchmarkFunction("bbob", fid, dimension, instance) assert str(fn) == f"bbob_f{fid:03d}_i{instance:02d}_d{dimension:02d}" - assert fn(x0) >= fn.best_value() - def test_list(): fn = BenchmarkFunction("bbob", 1, 4, 1) assert fn([1, 2, 3, 4]) >= fn([1.0, 2.0, 3.0, 4.0]) - def test_multiple_parameters(): for n in [1, 2, 10, 100, 200]: fn = BenchmarkFunction("bbob", 1, 4, 1) X = np.random.uniform(-5, 5, size=(n, 4)) y = fn(X) assert len(y) == n - assert np.all(y >= fn.best_value())