Skip to content

Commit

Permalink
some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho committed Oct 22, 2020
1 parent 839cdfb commit 533e367
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ end
@test @constinferred(ac*β) == Array(ac)*β
@test @constinferred(ar + ac) == Array(ar) + Array(ac)
@test @constinferred(ac - ar) == Array(ac) - Array(ar)
mar = @constinferred(-ar)
@test !(mar == ar)
@test iszero(ar + mar)
@test @constinferred(zero(ar)) + ac == ac
@test ac == convert(SparseArray, Array(ac))

Expand Down

0 comments on commit 533e367

Please sign in to comment.