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

🔧 Fix polishing unit test #78

Merged
merged 3 commits into from
May 19, 2020
Merged

🔧 Fix polishing unit test #78

merged 3 commits into from
May 19, 2020

Conversation

migarstka
Copy link
Collaborator

@migarstka migarstka commented May 18, 2020

  • The way randomly generated sparse matrices are created changed between Julia v1.2 and Julia v1.0. Therefore
    some of the precomputed accurate solutions in the unit tests are invalid.
  • I hardcoded the problem and saved the problem data with known solution in a file.
  • The same has to be done in the update matrix unit test. However, it is not as straight forward as for the polishing test. For now, I just disabled the test if the Julia version is not v1.0.

- The default seed changed between Julia v1.3 and Julia v1.0. Therefore
some of the precomputed accurate solutions in the unit tests are invalid.
- I fixed the seed in the polishing unit test and recomputed a valid solution.
- The same has to be done in the update matrix unit test. For now, we
just disable the test if the Julia version is not v1.0
- Load the polishing problem with known solution from Mosek from a
file
- Add FileIO to test dependencies
test/update_matrices.jl Outdated Show resolved Hide resolved
test/update_matrices.jl Outdated Show resolved Hide resolved
@migarstka
Copy link
Collaborator Author

Relevant to the seed issue: JuliaLang/julia#30494

@blegat blegat merged commit db5f0e4 into master May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants