Skip to content

Commit

Permalink
add a test for #11658
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Jun 17, 2015
1 parent fa473e5 commit 0ce6284
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sparsedir/sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ A = speye(5)
@test convert(Matrix,A) == full(A)

# test float
A = sprandbool(5,5,0.0)
@test eltype(float(A)) == Float64 # issue #11658
A = sprandbool(5,5,0.2)
@test float(A) == float(full(A))

Expand Down

0 comments on commit 0ce6284

Please sign in to comment.