Skip to content

Add test for issue #18974 #19425

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

Merged
merged 1 commit into from
Dec 2, 2016
Merged

Add test for issue #18974 #19425

merged 1 commit into from
Dec 2, 2016

Conversation

Sacha0
Copy link
Member

@Sacha0 Sacha0 commented Nov 26, 2016

#18975 included a test for issue #18974. #19065 superseded #18975 and the test got lost. This pull request provides that test. Thanks to @tkelman for catching this!

@kshyatt kshyatt added sparse Sparse arrays test This change adds or pertains to unit tests labels Nov 26, 2016

# Check that `broadcast` methods specialized for unary operations over
# `SparseMatrixCSC`s determine a reasonable return type. (Issue #18974.)
@test eltype(sin.(spdiagm(Int64(1):Int64(4)))) == Float64
Copy link
Contributor

Choose a reason for hiding this comment

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

the first version of this failed with Int? what explains that?

Copy link
Member Author

Choose a reason for hiding this comment

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

Derp on my part explains that: The first version was isa(eltype(...), Float64), with the failure due to isa. Best!

…ver a sparse matrix) from closed PR JuliaLang#18975 that was missed in PR JuliaLang#19065.
@Sacha0
Copy link
Member Author

Sacha0 commented Dec 1, 2016

Rebased. Planning to merge when CI clears. Best!

@Sacha0 Sacha0 merged commit c80d523 into JuliaLang:master Dec 2, 2016
@Sacha0 Sacha0 deleted the testspbctype branch December 2, 2016 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sparse Sparse arrays test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants