|
196 | 196 | @test axes(y) == (IdentityUnitRange(-1:1),)
|
197 | 197 | @test eltype(y) === Float32
|
198 | 198 |
|
199 |
| - y = OffsetArray{Float64}(undef, -1:1, -7:7, -128:512, -5:5, -1:1, -3:3, -2:2, -1:1) |
200 |
| - @test axes(y) == (-1:1, -7:7, -128:512, -5:5, -1:1, -3:3, -2:2, -1:1) |
| 199 | + y = OffsetArray{Float64}(undef, -1:1, -7:7, -1:2, -5:5, -1:1, -3:3, -2:2, -1:1) |
| 200 | + @test axes(y) == (-1:1, -7:7, -1:2, -5:5, -1:1, -3:3, -2:2, -1:1) |
201 | 201 | @test eltype(y) === Float64
|
202 | 202 |
|
203 | 203 | for (T, t) in ((Missing, missing), (Nothing, nothing))
|
@@ -303,10 +303,10 @@ end
|
303 | 303 | @inbounds Ac[0,3,1] = 12
|
304 | 304 | @test Ac[0,3] == 12
|
305 | 305 |
|
306 |
| - y = OffsetArray{Float64}(undef, -1:1, -7:7, -128:512, -5:5, -1:1, -3:3, -2:2, -1:1) |
307 |
| - y[-1,-7,-128,-5,-1,-3,-2,-1] = 14 |
308 |
| - y[-1,-7,-128,-5,-1,-3,-2,-1] += 5 |
309 |
| - @test y[-1,-7,-128,-5,-1,-3,-2,-1] == 19 |
| 306 | + y = OffsetArray{Float64}(undef, -1:1, -7:7, -3:-1, -5:5, -1:1, -3:3, -2:2, -1:1) |
| 307 | + y[-1,-7,-3,-5,-1,-3,-2,-1] = 14 |
| 308 | + y[-1,-7,-3,-5,-1,-3,-2,-1] += 5 |
| 309 | + @test y[-1,-7,-3,-5,-1,-3,-2,-1] == 19 |
310 | 310 |
|
311 | 311 | @testset "setindex!" begin
|
312 | 312 | A = OffsetArray(ones(2,2), 1:2, 1:2)
|
|
0 commit comments