Skip to content

Commit 7ebd435

Browse files
committed
Merge remote-tracking branch 'upstream/master' into cs_safe
2 parents 4cfbd12 + e89d8c2 commit 7ebd435

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

test/runtests.jl

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

933941
end

0 commit comments

Comments
 (0)