Skip to content

Commit

Permalink
Merge pull request #154 from JuliaLang/yyc/sparsevec
Browse files Browse the repository at this point in the history
Compat for SparseArrays module
  • Loading branch information
yuyichao committed Oct 19, 2015
2 parents 659ac79 + bdedf62 commit ab43b41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Compat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -701,4 +701,9 @@ if VERSION < v"0.5.0-dev+431"
end
end

if VERSION < v"0.5.0-dev+763"
export SparseArrays
const SparseArrays = Base.SparseMatrix
end

end # module
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ f141(::Type{TCPSocket}) = true
@test f141(OutOfMemoryError)
@test f141(Base64EncodePipe)
@test f141(UDPSocket)
@test f141(TCPSocket)

# Union syntax
if VERSION < v"0.4.0-dev+5379"
Expand All @@ -541,3 +542,6 @@ end
@test remotecall_fetch(() -> true, 1)
@test fetch(remotecall_wait(() -> true, 1))
Base.remote_do(() -> true, 1) # Doesn't return anything so cannot be `@test`ed but should print some output if it fails

# JuliaLang/julia#13440
@test isa(SparseArrays, Module)

0 comments on commit ab43b41

Please sign in to comment.