-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test empty model solution and improve error msg #447
Conversation
Codecov Report
@@ Coverage Diff @@
## master #447 +/- ##
==========================================
+ Coverage 80.55% 80.59% +0.04%
==========================================
Files 50 50
Lines 4305 4304 -1
==========================================
+ Hits 3468 3469 +1
+ Misses 837 835 -2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why coverage decreases...
test/issues_tests.jl
Outdated
) | ||
model = BlockModel(coluna, direct_model = true) | ||
optimize!(model) | ||
@test JuMP.objective_value(model) == Inf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The objective value must be 0.
test/issues_tests.jl
Outdated
optimize!(model) | ||
catch e | ||
@test repr(e) == "ErrorException(\"Cannot apply run! for arguments Coluna.Algorithm.TreeSearchAlgorithm, Coluna.Algorithm.ModelData, Coluna.Algorithm.OptimizationInput{Coluna.MathProg.Formulation{Coluna.MathProg.Original},Coluna.MathProg.MinSense}.\")" | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can replace this block by @test_throws ExceptionError optimize!(model)
.
No description provided.