Skip to content

Commit

Permalink
add more tests from #79
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Oct 10, 2021
1 parent 594c767 commit 4c7b7c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/warp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,13 @@ NaN NaN NaN NaN NaN NaN NaN
@test ImageTransformations._mod2pi(τ) isa Float64
## Now check that it gives the expected result
@test imrotate(img_camera, τ) img_camera

# check special rotation degrees
img = rand(Gray{N0f8}, 100, 50)
@test size(imrotate(img, pi/2)) == (50, 100)
@test size(imrotate(img, pi)) == (100, 50)
@test size(imrotate(img, 3pi/2)) == (50, 100)
@test size(imrotate(img, 2pi)) == (100, 50)
end
end
end

0 comments on commit 4c7b7c2

Please sign in to comment.