From f6e27aaa9c8d4eb9e7313ef72bb70923651057be Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Sat, 6 Aug 2022 05:35:47 -0600 Subject: [PATCH] test bugs --- test/unzipped.jl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/unzipped.jl b/test/unzipped.jl index 0d616b3f2..2677cbede 100644 --- a/test/unzipped.jl +++ b/test/unzipped.jl @@ -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, unzip∘map, unzip∘broadcast] # unzip_map, @test_throws Exception fun(sqrt, 1:3) @@ -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 == unzip∘map + + if fun == unzip∘map @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))