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

Add vectorized operation tests #1274

Merged
merged 5 commits into from
May 8, 2018
Merged

Add vectorized operation tests #1274

merged 5 commits into from
May 8, 2018

Conversation

blegat
Copy link
Member

@blegat blegat commented May 7, 2018

Commented tests in JuMP v0.18 have been uncommented. One of them mentionned that was failing because of #912 but it now works. One of them was failing because of #1275 but a fix is contained in this PR.
A last test is failing because of #1276 but I defer the fix for a later PR.

Closes #912
Closes #1275

@codecov
Copy link

codecov bot commented May 7, 2018

Codecov Report

Merging #1274 into master will increase coverage by 1.97%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1274      +/-   ##
==========================================
+ Coverage   82.05%   84.03%   +1.97%     
==========================================
  Files          24       24              
  Lines        3416     3451      +35     
==========================================
+ Hits         2803     2900      +97     
+ Misses        613      551      -62
Impacted Files Coverage Δ
src/quadexpr.jl 71.92% <100%> (+16.16%) ⬆️
src/operators.jl 90.2% <100%> (+25.78%) ⬆️
src/macros.jl 87.01% <0%> (+0.11%) ⬆️
src/parseexpr.jl 60.83% <0%> (+0.13%) ⬆️
src/affexpr.jl 85.71% <0%> (+0.15%) ⬆️

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 2345c86...4dcc3ba. Read the comment docs.

test/operator.jl Outdated
@test vec_eq(Xd'*Y, Xd.'*Y)
@test vec_eq(Y'*Xd, Y.'*Xd)
@test vec_eq(Xd'*Xd, Xd.'*Xd)
# @test_broken vec_eq(A*X, B*X)
Copy link
Member

Choose a reason for hiding this comment

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

Why is this code commented?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was commented out in old/operators.jl, I have uncommented them and checked what were the issue, see the description of this PR for details :)

test/operator.jl Outdated
@test vec_eq(A.+x, [1+x[1,1] 2+x[1,2];
3+x[2,1] 4+x[2,2]])
@test vec_eq(A.+x, B.+x)
# @test vec_eq(A.+x, A.+y)
Copy link
Member

Choose a reason for hiding this comment

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

Why is this commented?

@mlubin
Copy link
Member

mlubin commented May 7, 2018

Nice boost in coverage for src/operators.jl!

@blegat blegat merged commit 22f3153 into master May 8, 2018
@mlubin mlubin deleted the bl/vecops branch May 8, 2018 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants