Skip to content
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] add test_model.jl #1419

Merged
merged 4 commits into from
Jun 30, 2021
Merged

[Test] add test_model.jl #1419

merged 4 commits into from
Jun 30, 2021

Conversation

odow
Copy link
Member

@odow odow commented Jun 29, 2021

Part of #1398

@odow odow added the Submodule: Tests About the Tests submodule label Jun 29, 2021
@odow odow mentioned this pull request Jun 29, 2021
22 tasks
@test_throws(
MOI.UnsupportedAttribute,
MOI.copy_to(model, BadModelAttributeModel()),
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@blegat I found test GLPK fails! It was trying to access ObjectiveFunction attribute, despite the fact that the model does not list in in the ListOfModelAttributesSet. Hurrah for full testing from modellike.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

julia> @testset "MOI" begin
           MOI.Test.runtests(
               GLPK.Optimizer(),
               MOI.Test.Config(),
               exclude = [
                   # GLPK treats this one as "INVALID_MODEL"
                   "test_constraint_ZeroOne_bounds_3",
               ]
           )
       end
Test Summary: | Pass  Total
MOI           |  476    476
[...]

@odow odow merged commit 9395bff into master Jun 30, 2021
@odow odow deleted the od/test-model branch June 30, 2021 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Submodule: Tests About the Tests submodule
Development

Successfully merging this pull request may close these issues.

1 participant