From d29a1e8e90c5b648b6e60db580e26242238babe2 Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Thu, 24 Mar 2022 00:28:07 -0700 Subject: [PATCH] Make WrappedSubArray tests more interesting --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index cb6121a..7534635 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -202,10 +202,10 @@ end @testset "type information" begin @test Adapt.ndims(Transpose{Float64,Array{Float64,1}}) == 2 - @test Adapt.ndims(Adapt.WrappedSubArray{Float64,3,Array{Float64,3}}) == 3 + @test Adapt.ndims(Adapt.WrappedSubArray{Float64,3,Array{Float64,4}}) == 3 @test Adapt.parent(Transpose{Float64,Array{Float64,1}}) == Array - @test Adapt.parent(Adapt.WrappedSubArray{Float64,3,Array{Float64,3}}) == Array + @test Adapt.parent(Adapt.WrappedSubArray{Float64,3,Array{Float64,4}}) == Array end