From 0c24b65857ca69cc71533f66cdcb3a125934bee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Sat, 6 Jul 2024 10:25:10 +0200 Subject: [PATCH] Enable chebyshev tests --- test/Mock/chebyshev.jl | 10 ++-------- test/Mock/mock_tests.jl | 6 +++--- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/test/Mock/chebyshev.jl b/test/Mock/chebyshev.jl index c4c414884..423c834d5 100644 --- a/test/Mock/chebyshev.jl +++ b/test/Mock/chebyshev.jl @@ -1,16 +1,10 @@ config = MOI.Test.Config() -function optimize_bridged!(mock) +function optimize!(mock) return MOI.Utilities.mock_optimize!( mock, [[128.0, 1.0, -0.0, -32.0, 0.0, 160.0, -0.0, -256.0, 0.0]; zeros(90)], ) end -function optimize_cached!(mock) - return MOI.Utilities.mock_optimize!( - mock, - [zeros(90); [128.0, 1.0, -0.0, -32.0, 0.0, 160.0, -0.0, -256.0, 0.0]], - ) -end -for mock in [bridged_mock(optimize_bridged!), cached_mock(optimize_cached!)] +for mock in [bridged_mock(optimize!), cached_mock(optimize!)] Tests.chebyshev_test(mock, config) end diff --git a/test/Mock/mock_tests.jl b/test/Mock/mock_tests.jl index f81b48ceb..7b0079dfd 100644 --- a/test/Mock/mock_tests.jl +++ b/test/Mock/mock_tests.jl @@ -48,9 +48,9 @@ end @testset "Max Cut" begin include("maxcut.jl") end -#@testset "Chebyshev" begin -# include("chebyshev.jl") -#end +@testset "Chebyshev" begin + include("chebyshev.jl") +end #@testset "Quartic comparison" begin # include("quartic_comparison.jl") #end