Skip to content

Commit

Permalink
and one more
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho committed Oct 22, 2020
1 parent 533e367 commit f2fe5b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ end
@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)
ar2 = copy(ar)
ar2[first(nonzero_keys(ar2))] = 0
@test !(ar2 == ar)
@test @constinferred(zero(ar)) + ac == ac
@test ac == convert(SparseArray, Array(ac))

Expand Down

2 comments on commit f2fe5b2

@Jutho
Copy link
Owner Author

@Jutho Jutho commented on f2fe5b2 Oct 22, 2020

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/23487

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" f2fe5b2bb03685b73e63b41ba90b53f366ebaea7
git push origin v0.2.0

Please sign in to comment.