From a149e8ad4749adc1c7b74123ff40442bff0282e4 Mon Sep 17 00:00:00 2001 From: Frames White Date: Wed, 27 Dec 2023 12:49:55 +0800 Subject: [PATCH] Delete StaticArrays Projection tests --- test/projection.jl | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/projection.jl b/test/projection.jl index d364631fc..8573f9ac2 100644 --- a/test/projection.jl +++ b/test/projection.jl @@ -378,27 +378,6 @@ struct NoSuperType end @test pvec3(OffsetArray(rand(3,1), 0:2, 0:0)) isa Vector end - ##### - ##### `StaticArrays` - ##### - - @testset "StaticArrays" begin - # There is no code for this, but when argument isa StaticArray, axes(x) === axes(dx) - # implies a check, and reshape will wrap a Vector into a static SizedVector: - pstat = ProjectTo(SA[1, 2, 3]) - @test axes(pstat(rand(3))) === (SOneTo(3),) - - # This recurses into structured arrays: - pst = ProjectTo(transpose(SA[1, 2, 3])) - @test axes(pst(rand(1,3))) === (SOneTo(1), SOneTo(3)) - @test pst(rand(1,3)) isa Transpose - - # When the argument is an ordinary Array, static gradients are allowed to pass, - # like FillArrays. Collecting to an Array would cost a copy. - pvec3 = ProjectTo([1, 2, 3]) - @test pvec3(SA[1, 2, 3]) isa StaticArray - end - ##### ##### `ChainRulesCore` #####