Skip to content

Commit 4c7b7c2

Browse files
committed
add more tests from #79
1 parent 594c767 commit 4c7b7c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/warp.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,13 @@ NaN NaN NaN NaN NaN NaN NaN
476476
@test ImageTransformations._mod2pi(τ) isa Float64
477477
## Now check that it gives the expected result
478478
@test imrotate(img_camera, τ) img_camera
479+
480+
# check special rotation degrees
481+
img = rand(Gray{N0f8}, 100, 50)
482+
@test size(imrotate(img, pi/2)) == (50, 100)
483+
@test size(imrotate(img, pi)) == (100, 50)
484+
@test size(imrotate(img, 3pi/2)) == (50, 100)
485+
@test size(imrotate(img, 2pi)) == (100, 50)
479486
end
480487
end
481488
end

0 commit comments

Comments
 (0)