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 authored and maleadt committed Oct 23, 2023
1 parent b6858e0 commit d29a1e8
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 @@ -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


Expand Down

0 comments on commit d29a1e8

Please sign in to comment.