Skip to content

Commit

Permalink
Add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erich-9 committed Mar 2, 2024
1 parent a0dd415 commit 2a149be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/arrayops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,15 @@ end
oa = OffsetVector(copy(a), -1)
@test circshift!(oa, 1) === oa
@test oa == circshift(OffsetVector(a, -1), 1)


# 1d circshift! (https://github.com/JuliaLang/julia/pull/53554)
a = []
@test circshift!(a, 1) === a
@test circshift!(a, 1) == []
a = [1:5;]
@test circshift!(a, 10) === a
@test circshift!(a, 10) == [1:5;]
end

@testset "circcopy" begin
Expand Down

0 comments on commit 2a149be

Please sign in to comment.