Skip to content

Commit

Permalink
improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsipher committed Oct 28, 2023
1 parent f3ba855 commit 89afe34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/variables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ Base.length(v::LogicalVariableRef) = 1
function Base.:(==)(v::LogicalVariableRef, w::LogicalVariableRef)
return v.model === w.model && v.index == w.index
end
function Base.getindex(map::ReferenceMap, vref::LogicalVariableRef)
return LogicalVariableRef(map.model, index(vref))
end
# function Base.getindex(map::ReferenceMap, vref::LogicalVariableRef)
# return LogicalVariableRef(map.model, index(vref))
# end

# JuMP extensions
"""
Expand Down
2 changes: 1 addition & 1 deletion test/constraints/disjunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function test_disjunctions_add_success()
@constraint(model, x <= 10, Disjunct(z[1]))
@constraint(model, x >= 10, Disjunct(z[2]))
@disjunctions(model, begin
disj1, y
disj1, y, (base_name = "bob", container = Array)
disj2, z
end)
@test is_valid(model, disj1)
Expand Down

0 comments on commit 89afe34

Please sign in to comment.