Skip to content

Commit

Permalink
Test type-stability of similar
Browse files Browse the repository at this point in the history
Tests that the fix in #393 covers #356
  • Loading branch information
timholy committed Nov 3, 2015
1 parent d960a1c commit 7942a4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ facts("Core") do
@fact imgc.data --> img.data
imgc = copyproperties(imgd, A)
@fact imgc.data --> A
img2 = similar(img)
img2 = @inferred(similar(img))
@fact isa(img2, ImageCmap) --> true
@fact (img2.data == img.data) --> false
img2 = similar(imgd)
img2 = @inferred(similar(imgd))
@fact isa(img2, Image) --> true
img2 = similar(img, (4,4))
@fact isa(img2, ImageCmap) --> true
Expand Down

0 comments on commit 7942a4e

Please sign in to comment.