Skip to content

Commit

Permalink
Use QUBODrivers test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
iagoleal committed Dec 4, 2024
1 parent 8372542 commit 21ce636
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
QUBODrivers = "a3f166f7-2cd3-47b6-9e1e-6fbfe0449eb0"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3 changes: 3 additions & 0 deletions test/jump.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import JuMP
import QUBODrivers

QUBODrivers.test(TenSolver.Optimizer)

@testset "JuMP interface" begin
dim = 5
Expand Down
10 changes: 4 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ include(filepath("utils.jl"))
@test_throws BoundsError solve(Q)
end

@testset "Solver" begin
# Traditional interface
include(filepath("qubo.jl"))
# JuMP interface
include(filepath("jump.jl"))
end
# Traditional interface
include(filepath("qubo.jl"))
# JuMP interface
include(filepath("jump.jl"))

0 comments on commit 21ce636

Please sign in to comment.