-
Notifications
You must be signed in to change notification settings - Fork 3
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 tests #29
Fix tests #29
Conversation
test/kliep.jl
Outdated
@@ -1,5 +1,5 @@ | |||
@testset "KLIEP -- $optlib" for optlib in [OptimLib, ConvexLib] | |||
for (pair, rtol) in [(pair₁, 2e-1), (pair₂, 4e-1)] | |||
for (i, pair, rtol) in [(1, pair₁, 2e-1), (2, pair₂, 4e-1)] |
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.
It is needed in Line 20
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.
Perhaps write it as enumerate([(pair1, 2e-1), (pair2, 4e-1)])
instead?
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.
Thank you for fixing the tests and improving the JuMP version. Attached some minor comments.
test/kliep.jl
Outdated
@@ -1,5 +1,5 @@ | |||
@testset "KLIEP -- $optlib" for optlib in [OptimLib, ConvexLib] | |||
for (pair, rtol) in [(pair₁, 2e-1), (pair₂, 4e-1)] | |||
for (i, pair, rtol) in [(1, pair₁, 2e-1), (2, pair₂, 4e-1)] |
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.
Perhaps write it as enumerate([(pair1, 2e-1), (pair2, 4e-1)])
instead?
test/kmm.jl
Outdated
@@ -1,22 +1,21 @@ | |||
@testset "KMM -- $optlib" for optlib in [JuliaLib, JuMPLib] | |||
for (i, pair) in enumerate([pair₁, pair₂]) | |||
for (i, pair, rtol) in [(1, pair₁, 2e-1), (2, pair₂, 4e-1)] |
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 think we can keep enumarate here like suggested above.
I will address them during weekends. |
Okay so I replaced explicit indexing with |
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.
All good, thanks for the update.
KMM test is now fixed. There was also a bug in the KLIEP test (missing
i
for creating the names of plots)