From 2a149be37436d53354db1952b631b584c8c40494 Mon Sep 17 00:00:00 2001 From: Erich Neun Date: Sat, 2 Mar 2024 12:09:07 +0100 Subject: [PATCH] Add some tests --- test/arrayops.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/arrayops.jl b/test/arrayops.jl index a07e631e639f9..242e423ed74a3 100644 --- a/test/arrayops.jl +++ b/test/arrayops.jl @@ -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