-
Notifications
You must be signed in to change notification settings - Fork 1
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 sum and subtraction for Tensor
with same inds
but different permutation
#137
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #137 +/- ##
==========================================
+ Coverage 84.35% 84.54% +0.19%
==========================================
Files 11 11
Lines 639 647 +8
==========================================
+ Hits 539 547 +8
Misses 100 100 ☔ View full report in Codecov by Sentry. |
test/Numerics_test.jl
Outdated
@test issetequal(size(C), (2, 3, 2)) | ||
|
||
D = A - B | ||
@test issetequal(inds(D), (:i, :j, :k)) | ||
@test issetequal(size(D), (2, 3, 2)) |
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.
You should also test the result.
Co-authored-by: Sergio Sánchez Ramírez <[email protected]>
Co-authored-by: Sergio Sánchez Ramírez <[email protected]>
Can we merge this, @mofeing ? |
Yep, I approved it |
This PR resolves #136. Additionally, we add some small tests to cover for the changes.