@@ -1755,7 +1755,7 @@ end
17551755
17561756 B = reshape (A0, - 10 : - 9 , 9 : 10 )
17571757 @test isa (B, OffsetArray{Int,2 })
1758- @test parent (B) === A0
1758+ @test parent (B) == A0
17591759 @test axes (B) == IdentityUnitRange .((- 10 : - 9 , 9 : 10 ))
17601760 B = reshape (A, - 10 : - 9 , 9 : 10 )
17611761 @test isa (B, OffsetArray{Int,2 })
@@ -1786,7 +1786,7 @@ end
17861786 # reshape with one Colon for AbstractArrays
17871787 B = reshape (A0, - 10 : - 9 , :)
17881788 @test B isa OffsetArray{Int,2 }
1789- @test parent (B) === A0
1789+ @test parent (B) == A0
17901790 @test no_offset_axes (B, 1 ) == - 10 : - 9
17911791 @test axes (B, 2 ) == axes (A0, 2 )
17921792
@@ -1807,17 +1807,14 @@ end
18071807 # pop the parent
18081808 B = reshape (A, size (A))
18091809 @test B == A0
1810- @test parent (B) === A0
18111810 B = reshape (A, (Base. OneTo (2 ), 2 ))
18121811 @test B == A0
1813- @test parent (B) === A0
18141812 B = reshape (A, (2 ,:))
18151813 @test B == A0
1816- @test parent (B) === A0
18171814
18181815 # julialang/julia #33614
18191816 A = OffsetArray (- 1 : 0 , (- 2 ,))
1820- @test reshape (A, :) === A
1817+ @test reshape (A, :) == A
18211818 Arsc = reshape (A, :, 1 )
18221819 Arss = reshape (A, 2 , 1 )
18231820 @test Arsc[1 ,1 ] == Arss[1 ,1 ] == - 1
0 commit comments