Skip to content

Commit

Permalink
Add type inference test for StructVector
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Nov 7, 2019
1 parent eee2754 commit 3849e36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_structarrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ end
@test_broken eltype(ys) == ComplexF64
end

@testset "type inference" begin
@test (@inferred singletonof(StructVector, (a=1,))) == StructVector((a=[1]))
end

end # module

0 comments on commit 3849e36

Please sign in to comment.