Skip to content

Commit f2fe5b2

Browse files
committed
and one more
1 parent 533e367 commit f2fe5b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ end
3737
@test @constinferred(ar + ac) == Array(ar) + Array(ac)
3838
@test @constinferred(ac - ar) == Array(ac) - Array(ar)
3939
mar = @constinferred(-ar)
40-
@test !(mar == ar)
4140
@test iszero(ar + mar)
41+
ar2 = copy(ar)
42+
ar2[first(nonzero_keys(ar2))] = 0
43+
@test !(ar2 == ar)
4244
@test @constinferred(zero(ar)) + ac == ac
4345
@test ac == convert(SparseArray, Array(ac))
4446

0 commit comments

Comments
 (0)