Skip to content

Commit

Permalink
Fix breakages on OffsetArrays 1.3.1 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy authored Oct 12, 2020
1 parent 8993b6c commit 0879c21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end
Gray.(N0f8.(A)),
Gray.(N0f16.(A)) )
imgo = OffsetArray(img, -2, -1)
s = @inferred(convert(OffsetArray{Gray{Float32},2,Array{Gray{Float32}}},imgo))
s = @inferred(convert(OffsetArray{Gray{Float32},2,Matrix{Gray{Float32}}},imgo))
@test eltype(s) == Gray{Float32}
@test s isa OffsetArray{Gray{Float32},2,Array{Gray{Float32},2}}
@test permutedims(permutedims(s,(2,1)),(2,1)) == s
Expand All @@ -47,7 +47,7 @@ end
Gray.(N0f8.(A)),
Gray.(N0f16.(A)) )
imgo = OffsetArray(img, -2, -1)
s = @inferred(convert(OffsetArray{Gray{N0f8},2,Array{Gray{N0f8}}},imgo))
s = @inferred(convert(OffsetArray{Gray{N0f8},2,Matrix{Gray{N0f8}}},imgo))
@test eltype(s) == Gray{N0f8}
@test s isa OffsetArray{Gray{N0f8},2,Array{Gray{N0f8},2}}
@test permutedims(permutedims(s,(2,1)),(2,1)) == s
Expand All @@ -58,7 +58,7 @@ end
Gray.(N0f8.(A)),
Gray.(N0f16.(A)) )
imgo = OffsetArray(img, -2, -1)
s = @inferred(convert(OffsetArray{Gray{N0f16},2,Array{Gray{N0f16}}},imgo))
s = @inferred(convert(OffsetArray{Gray{N0f16},2,Matrix{Gray{N0f16}}},imgo))
@test eltype(s) == Gray{N0f16}
@test s isa OffsetArray{Gray{N0f16},2,Array{Gray{N0f16},2}}
@test permutedims(permutedims(s,(2,1)),(2,1)) == s
Expand All @@ -74,7 +74,7 @@ end
n2f14.(A),
n0f16.(A))
imgo = OffsetArray(img, -2, -1)
s = @inferred(convert(OffsetArray{RGB{N0f8},2,Array{RGB{N0f8}}},imgo))
s = @inferred(convert(OffsetArray{RGB{N0f8},2,Matrix{RGB{N0f8}}},imgo))
@test eltype(s) == RGB{N0f8}
@test s isa OffsetArray{RGB{N0f8},2,Array{RGB{N0f8},2}}
@test permutedims(permutedims(s,(2,1)),(2,1)) == s
Expand All @@ -89,7 +89,7 @@ end
n2f14.(A),
n0f16.(A))
imgo = OffsetArray(img, -2, -1)
s = @inferred(convert(OffsetArray{RGB{Float32},2,Array{RGB{Float32}}},imgo))
s = @inferred(convert(OffsetArray{RGB{Float32},2,Matrix{RGB{Float32}}},imgo))
@test eltype(s) == RGB{Float32}
@test s isa OffsetArray{RGB{Float32},2,Array{RGB{Float32},2}}
@test permutedims(permutedims(s,(2,1)),(2,1)) == s
Expand Down

0 comments on commit 0879c21

Please sign in to comment.