@@ -905,6 +905,14 @@ using FillArrays
905905 G = rand (length (radii))
906906 outs = Outputs .(Np, Tp, a, ap, u, v, phi, alpha, W, cl, cd, cn, ct, F, G)
907907
908+ @testset " reshape" begin
909+ sections_rs = reshape (sections, 1 , :, 1 )
910+ @test sections_rs[1 , 2 , 1 ]. r ≈ sections[2 ]. r
911+ @test sections_rs[1 , 3 , 1 ]. chord ≈ sections[3 ]. chord
912+ @test sections_rs[1 , 5 , 1 ]. theta ≈ sections[5 ]. theta
913+ @test sections_rs[1 , 9 , 1 ]. af == sections[9 ]. af
914+ end
915+
908916 @testset " OffsetArrays" begin
909917 sections_oa = OffsetArray (sections, 0 : length (sections)- 1 )
910918 @test sections[1 ]. r ≈ sections_oa[0 ]. r
@@ -919,15 +927,15 @@ using FillArrays
919927 @testset " FillArrays" begin
920928 sections_fill = Fill (sections[1 ], 3 )
921929 @test length (sections_fill) == 3
922- sections_fill[3 ]. r ≈ sections[1 ]. r
930+ @test sections_fill[3 ]. r ≈ sections[1 ]. r
923931
924932 ops_fill = Fill (ops[1 ], 3 )
925933 @test length (ops_fill) == 3
926- ops_fill[3 ]. Vx ≈ ops[1 ]. Vx
934+ @test ops_fill[3 ]. Vx ≈ ops[1 ]. Vx
927935
928936 outs_fill = Fill (outs[1 ], 3 )
929937 @test length (outs_fill) == 3
930- outs_fill[3 ]. Np ≈ outs[1 ]. Np
938+ @test outs_fill[3 ]. Np ≈ outs[1 ]. Np
931939 end
932940
933941end
0 commit comments