Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 10, 2018
1 parent 4963a9d commit beee8cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ using Compat.Test
@test !JuMP.isfixed(lbonly)
@test JuMP.isbinary(lbonly)
@test !JuMP.isinteger(lbonly)
@test isequal(mcon[:lbonly],lbonly)
@test_throws ErrorException @variable(mcon, lbonly)
end

@testset "Upper bound" begin
Expand All @@ -49,6 +51,7 @@ using Compat.Test
@test !JuMP.isfixed(ubonly)
@test !JuMP.isbinary(ubonly)
@test JuMP.isinteger(ubonly)
@test isequal(mcon[:ubonly],ubonly)
end

@testset "Interval" begin
Expand Down Expand Up @@ -93,10 +96,7 @@ using Compat.Test
@test JuMP.name(x[-10,"Green"]) == "x[-10,Green]"
# TODO: broken because of https://github.com/JuliaOpt/MathOptInterface.jl/issues/302
#@test JuMP.startvalue(x[-3,"Blue"]) == -2
@test isequal(mcon[:lbonly],lbonly)
@test isequal(mcon[:ubonly],ubonly)
@test isequal(mcon[:onerangeub][-7],onerangeub[-7])
@test_throws ErrorException @variable(mcon, lbonly)
@test_throws KeyError mcon[:foo]
end

Expand Down

0 comments on commit beee8cf

Please sign in to comment.