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 broadcasting of DenseAxisArray with scalars #1675
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1675 +/- ##
==========================================
+ Coverage 67.91% 69.46% +1.55%
==========================================
Files 30 31 +1
Lines 3805 4087 +282
==========================================
+ Hits 2584 2839 +255
- Misses 1221 1248 +27
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #1675 +/- ##
=========================================
+ Coverage 67.91% 70.01% +2.1%
=========================================
Files 30 31 +1
Lines 3805 4209 +404
=========================================
+ Hits 2584 2947 +363
- Misses 1221 1262 +41
Continue to review full report at Codecov.
|
test/DenseAxisArray.jl
Outdated
@test B[2] == 2.0 | ||
@test B[3] == 3.0 | ||
@test sprint(show, B) == """ | ||
for B in [plus1.(A), A .+ 1, 1 .+ A] |
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.
- The printing part only needs to be tested once.
- IMO the following is more readable:
@test plus1.(A) == correct_answer
@test A .+ 1 == correct_answer
@test 1 .+ A == correct_answer
Closes #1455