Skip to content

Commit

Permalink
Make WrappedSubArray tests more interesting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwe committed Mar 24, 2022
1 parent 7ffdb0b commit da65e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,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


Expand Down

0 comments on commit da65e02

Please sign in to comment.