Skip to content

Commit

Permalink
test bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Aug 6, 2022
1 parent 474fbf2 commit f6e27aa
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/unzipped.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

using ChainRules: unzip_broadcast, unzip #, unzip_map

@testset "unzip_broadcast.jl" begin
@testset "unzipped.jl" begin
@testset "basics: $(sprint(show, fun))" for fun in [unzip_broadcast, unzipmap, unzipbroadcast] # unzip_map,
@test_throws Exception fun(sqrt, 1:3)

Expand All @@ -16,10 +16,8 @@ using ChainRules: unzip_broadcast, unzip #, unzip_map
else
@test fun(tuple, [1,2,3], [4 5]) == ([1 1; 2 2; 3 3], [4 5; 4 5; 4 5])
end

if fun == unzip_map
@test_broken fun(tuple, (1,2,3), (4,5,6)) == ((1, 2, 3), (4, 5, 6))
elseif fun == unzipmap

if fun == unzipmap
@test fun(tuple, (1,2,3), (4,5,6)) == ((1, 2, 3), (4, 5, 6))
else
@test fun(tuple, (1,2,3), (4,5,6)) == ((1, 2, 3), (4, 5, 6))
Expand Down

0 comments on commit f6e27aa

Please sign in to comment.