Skip to content

Commit 1cea878

Browse files
committed
fix test on 0.5
1 parent cc295d8 commit 1cea878

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/constructed_images.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ type TestType end
9494

9595
@testset "Colormap usage" begin
9696
datafloat = reshape(linspace(0.5, 1.5, 6), 2, 3)
97-
dataint = round.(UInt8, 254*(datafloat .- 0.5) .+ 1) # ranges from 1 to 255
97+
if VERSION < v"0.6-"
98+
dataint = round(UInt8, 254*(datafloat .- 0.5) .+ 1) # ranges from 1 to 255
99+
else
100+
dataint = round.(UInt8, 254*(datafloat .- 0.5) .+ 1) # ranges from 1 to 255
101+
end
98102
# build our colormap
99103
b = RGB(0,0,1)
100104
w = RGB(1,1,1)

0 commit comments

Comments
 (0)