Skip to content

Commit

Permalink
Use a deterministic image
Browse files Browse the repository at this point in the history
It explicitly has elements that should require the full bit depth to distinguish.
  • Loading branch information
timholy committed Apr 15, 2016
1 parent edf54bc commit bb7ea36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/constructed_images.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ facts("IO") do
end

context("Gray png") do
a = rand(2,2)
a[1,1] = 1
a[2,2] = 0
a = [0 1/2^16 1/2^8; 1-1/2^8 1-1/2^16 1]
aa = convert(Array{UFixed8}, a)
fn = joinpath(workdir, "2by2.png")
fn = joinpath(workdir, "2by3.png")
ImageMagick.save(fn, a)
b = ImageMagick.load(fn)
@fact convert(Array, b) --> aa
Expand Down

0 comments on commit bb7ea36

Please sign in to comment.