Skip to content

Commit

Permalink
Enable chebyshev tests (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Jul 6, 2024
1 parent 9b69681 commit 8c5be8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions test/Mock/chebyshev.jl
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions test/Mock/mock_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c5be8f

Please sign in to comment.