Skip to content

Commit

Permalink
test against parent
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox committed Feb 25, 2020
1 parent 8f732a0 commit 25b8a41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/wrapper_array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ end
end

@testset "Strided Array Interface" begin
nda = NamedDimsArray{(:a, :b)}(ones(3,5))
@test strides(nda) == (1, 3)
@test stride(nda, :b) == 3 == stride(nda, 2)
x = ones(3, 5)
nda = NamedDimsArray{(:a, :b)}(x)
@test strides(nda) == (1, 3) == strides(x)
@test stride(nda, :b) == 3 == stride(nda, 2) == stride(x, 2)
end

const cnda = NamedDimsArray([10 20; 30 40], (:x, :y))
Expand Down

0 comments on commit 25b8a41

Please sign in to comment.