Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Nov 24, 2023
1 parent 1cd758f commit 39467a8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/unzipped.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ using ChainRules: unzip_broadcast, unzip #, unzip_map

# depending on Julia version may get ReinterpretArray or may get JLArray
# Either is acceptable
@test unzip(jl([(missing,2), (missing,4), (missing,6)]))[2] isa Union{Base.ReinterpretArray, JLArray}
@test unzip(jl([(1,), (3,), (5,)]))[1] isa Union{Base.ReinterpretArray, JLArray}
@test isa(
unzip(jl([(missing,2), (missing,4), (missing,6)]))[2],
Union{Base.ReinterpretArray, JLArray}
)
@test isa(
unzip(jl([(1,), (3,), (5,)]))[1],
Union{Base.ReinterpretArray, JLArray}
)
end
end

0 comments on commit 39467a8

Please sign in to comment.