From 70f60251abf062efeadd5419a520fde9ab1e56d5 Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Sun, 20 Oct 2024 10:01:16 +0200 Subject: [PATCH] remove test --- test/utils.jl | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/test/utils.jl b/test/utils.jl index 1d5177dafd..13b3e608c0 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -567,30 +567,6 @@ end @test length(Flux.params(oneadj)) == 1 # needs Functors@0.3 @test Flux.destructure(simple)[1] == Flux.destructure(oneadj)[1] == [1, 3, 2, 4] - - @testset "issue 2432" begin - x = rand(1) - m = (; a = x, b = x') - count = Ref(0) - mcopy = fmap(m; exclude = Flux._isleaf) do x - count[] += 1 - return copy(x) - end - @test count[] == 1 - @test mcopy.a === mcopy.b' - - struct BitsType - x::Int32 - y::Float64 - end - - for x in [1.0, 'a', BitsType(1, 2.0)] - @test Flux._isleaf([x]) - @test !Flux._isleaf([x]') - @test !Flux._isleaf(transpose([x])) - @test !Flux._isleaf(PermutedDimsArray([x;;], (1, 2))) - end - end end @testset "Various destructure bugs" begin