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

Move isequal_canonical definition out of test, fix TODO. #1441

Merged
merged 2 commits into from Aug 27, 2018
Merged

Conversation

IainNZ
Copy link
Collaborator

@IainNZ IainNZ commented Aug 26, 2018

This is seemingly only used by test/operator.jl, but I think the TODO is
correct and moving this with other methods for AbstractJS is better.

This is seemingly only used by test/operator.jl, but I think the TODO is
correct and moving this with other methods for AbstractJS is better.
@IainNZ IainNZ requested a review from mlubin August 26, 2018 22:10
@codecov
Copy link

codecov bot commented Aug 26, 2018

Codecov Report

Merging #1441 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1441      +/-   ##
==========================================
+ Coverage   88.87%   88.87%   +<.01%     
==========================================
  Files          25       25              
  Lines        3695     3696       +1     
==========================================
+ Hits         3284     3285       +1     
  Misses        411      411
Impacted Files Coverage Δ
src/JuMP.jl 77.2% <100%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d281d0...a2394f6. Read the comment docs.

src/JuMP.jl Outdated
# Check if two arrays of AbstractJuMPScalars are equal. Useful for testing.
function isequal_canonical(x::AbstractArray{<:JuMP.AbstractJuMPScalar},
y::AbstractArray{<:JuMP.AbstractJuMPScalar})
size(x) == size(y) && all(JuMP.isequal_canonical.(x, y))
Copy link
Member

Choose a reason for hiding this comment

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

Style nit: use return.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@mlubin mlubin merged commit 8936593 into master Aug 27, 2018
@mlubin mlubin deleted the ird/fixiseq branch August 27, 2018 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants