@@ -11,6 +11,9 @@ const BASE_TEST_PATH = joinpath(Sys.BINDIR, "..", "share", "julia", "test")
1111isdefined (Main, :OffsetArrays ) || @eval Main include (joinpath ($ (BASE_TEST_PATH), " testhelpers" , " OffsetArrays.jl" ))
1212using . Main. OffsetArrays
1313
14+ isdefined (Main, :ImmutableArrays ) || @eval Main include (joinpath ($ (BASE_TEST_PATH), " testhelpers" , " ImmutableArrays.jl" ))
15+ using . Main. ImmutableArrays
16+
1417@testset " Adjoint and Transpose inner constructor basics" begin
1518 intvec, intmat = [1 , 2 ], [1 2 ; 3 4 ]
1619 # Adjoint/Transpose eltype must match the type of the Adjoint/Transpose of the input eltype
250253 @test convert (Transpose{Float64,Matrix{Float64}}, Transpose (intmat)):: Transpose{Float64,Matrix{Float64}} == Transpose (intmat)
251254end
252255
253- isdefined (Main, :ImmutableArrays ) || @eval Main include (joinpath ($ (BASE_TEST_PATH), " testhelpers" , " ImmutableArrays.jl" ))
254- using . Main. ImmutableArrays
255-
256256@testset " Adjoint and Transpose convert methods to AbstractArray" begin
257257 # tests corresponding to #34995
258258 intvec, intmat = [1 , 2 ], [1 2 3 ; 4 5 6 ]
593593 @test pointer (Transpose (D)) === pointer (D)
594594end
595595
596- isdefined (Main, :OffsetArrays ) || @eval Main include (joinpath ($ (BASE_TEST_PATH), " testhelpers" , " OffsetArrays.jl" ))
597- using . Main. OffsetArrays
598-
599596@testset " offset axes" begin
600597 s = Base. Slice (- 3 : 3 )'
601598 @test axes (s) === (Base. OneTo (1 ), Base. IdentityUnitRange (- 3 : 3 ))
0 commit comments