Skip to content

Commit 2fc657e

Browse files
committed
Remove a few more 0.7 deprecations
1 parent 44d2349 commit 2fc657e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ for n = 0:5
1313
fill!(OffsetArray{Float64}(undef, ntuple(x->x:x, n)...), 1),
1414
fill!(OffsetArray{Float64,n}(undef, ntuple(x->x:x, n)), 1),
1515
fill!(OffsetArray{Float64,n}(undef, ntuple(x->x:x, n)...), 1))
16-
@test length(linearindices(a)) == 1
16+
@test length(LinearIndices(a)) == 1
1717
@test axes(a) == ntuple(x->x:x, n)
1818
@test a[1] == 1
1919
end
@@ -326,8 +326,8 @@ amin, amax = extrema(parent(A))
326326
@test clamp.(A, (amax+amin)/2, amax) == OffsetArray(clamp.(parent(A), (amax+amin)/2, amax), axes(A))
327327

328328
if VERSION >= v"0.7.0-DEV.5242"
329-
@test unique(A, 1) == OffsetArray(parent(A), 0, first(axes(A, 2)) - 1)
330-
@test unique(A, 2) == OffsetArray(parent(A), first(axes(A, 1)) - 1, 0)
329+
@test unique(A, dims=1) == OffsetArray(parent(A), 0, first(axes(A, 2)) - 1)
330+
@test unique(A, dims=2) == OffsetArray(parent(A), first(axes(A, 1)) - 1, 0)
331331
end
332332
v = OffsetArray(rand(8), (-2,))
333333
@test sort(v) == OffsetArray(sort(parent(v)), v.offsets)

0 commit comments

Comments
 (0)