Skip to content

Commit

Permalink
test: Julia 1.8 Compat
Browse files Browse the repository at this point in the history
9e64fec wrongly set the version
to 1.9, but it should be indeed 1.8
  • Loading branch information
johnnychen94 committed Jul 6, 2022
1 parent cfb2a9b commit 0f02846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/views.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ end
@test V[1,:,:] == A
@test all(iszero, V[2,:,:])
@test V[3,:,:] == B
err = VERSION >= v"1.9.0-DEV.351" ? CanonicalIndexError : ErrorException
err = VERSION >= v"1.8.0-rc1" ? CanonicalIndexError : ErrorException
@test_throws err V[2,1,1] = 7
V32 = @inferred(StackedView{Float32}(A, zeroarray, B))
@test eltype(V32) == Float32
Expand Down Expand Up @@ -107,7 +107,7 @@ end
@test @inferred(v[1,2]) === GrayA{N0f8}(0.25, 0.25)
v = @inferred(colorview(GrayA{N0f8}, a, zeroarray))
@test @inferred(v[2,1]) === GrayA{N0f8}(0.3,0)
err = VERSION >= v"1.9.0-DEV.351" ? CanonicalIndexError : ErrorException
err = VERSION >= v"1.8.0-rc1" ? CanonicalIndexError : ErrorException
@test_throws err (v[1,2] = GrayA(0.25, 0.25))
# RGB
v = @inferred(colorview(RGB{N0f8}, a, zeroarray, b))
Expand Down

0 comments on commit 0f02846

Please sign in to comment.