Skip to content

Commit

Permalink
Update tests for Arrayingterface <4 vs >=4
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod authored Feb 14, 2022
1 parent 9d20ecb commit 16ad446
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 @@ -80,13 +80,13 @@ end
@test @inferred(length(axes(StrideArraysCore.zview(C, StaticInt(2):StaticInt(6), :), 1))) === 5
ax1, ax2 = axes(StrideArraysCore.zview(C, StaticInt(2):StaticInt(6), :))
@test StrideArraysCore.ArrayInterface.known_length(ax1) == 5
@test StrideArraysCore.ArrayInterface.known_length(ax2) === nothing
@test StrideArraysCore.ArrayInterface.known_length(ax2) === StrideArraysCore.ArrayInterface.known_length(1:1)
@test StrideArraysCore.ArrayInterface.known_first(ax1) == 0
@test StrideArraysCore.ArrayInterface.known_first(ax2) == 0
@test StrideArraysCore.ArrayInterface.known_step(ax1) == 1
@test StrideArraysCore.ArrayInterface.known_step(ax2) == 1
@test StrideArraysCore.ArrayInterface.known_last(ax1) == 4
@test StrideArraysCore.ArrayInterface.known_last(ax2) === nothing
@test StrideArraysCore.ArrayInterface.known_last(ax2) === StrideArraysCore.ArrayInterface.known_length(1:1)
end
W = rand(2,3,4);
X = PtrArray(W);
Expand Down

2 comments on commit 16ad446

@chriselrod
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/54622

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.10 -m "<description of version>" 16ad446b9537c8f0ecf3a85d4b9129d5c8280832
git push origin v0.2.10

Please sign in to comment.