Skip to content

Commit

Permalink
Fix eltype IO test on OSX (RGB4 vs RGB)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Jul 13, 2017
1 parent 234400c commit 2f78e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/writemime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ using Base.Test
show(file, MIME("image/png"), img, minpixels=0, maxpixels=typemax(Int))
end
b = load(fn)
@test isa(b, Matrix{RGB{N0f8}}) && b[1] == RGB(1,0,0)
@test eltype(b) <: AbstractRGB && eltype(eltype(b)) == N0f8 && b[1] == RGB(1,0,0)
img = fill(RGBA{Float32}(1,0,0,0.5), 1, 1)
open(fn, "w") do file
show(file, MIME("image/png"), img, minpixels=0, maxpixels=typemax(Int))
Expand Down

0 comments on commit 2f78e6b

Please sign in to comment.