Skip to content

Commit

Permalink
✅ Add test for unstable binary broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Dec 13, 2018
1 parent 11762bc commit d5414ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/SparseAxisArray.jl
Expand Up @@ -79,6 +79,13 @@ SparseAxisArray{$Int,1,Tuple{Symbol}} with 2 entries:
fd = f.(d)
@test fd isa SparseAxisArray{Real,1,Tuple{Symbol}}
@test fd == SparseAxisArray(Dict((:a,) => 1, (:b,) => 0.5))
g(x, y) = f(x) + f(y)
fd = g.(d, 1)
@test fd isa SparseAxisArray{Real,1,Tuple{Symbol}}
@test fd == SparseAxisArray(Dict((:a,) => 2, (:b,) => 1.5))
fd = g.(1, d)
@test fd isa SparseAxisArray{Real,1,Tuple{Symbol}}
@test fd == SparseAxisArray(Dict((:a,) => 2, (:b,) => 1.5))
end
end
@testset "2-dimensional" begin
Expand Down

0 comments on commit d5414ab

Please sign in to comment.