Skip to content

Commit 3cdcc6e

Browse files
committed
Fix tests
1 parent 1b9a753 commit 3cdcc6e

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

test/projective/affine.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,9 @@ include("../imports.jl")
6060
imbounds = getbounds(image)
6161
kpbounds = getbounds(keypoints)
6262
tfm1 = ScaleKeepAspect((50, 50))
63-
@test getprojection(tfm1, imbounds) getprojection(ScaleRatio((1, 1)), imbounds)
64-
@test getprojection(tfm1, kpbounds) getprojection(ScaleRatio((1, 1)), kpbounds)
65-
6663
tfm2 = ScaleKeepAspect((25, 25))
67-
@test getprojection(tfm2, imbounds) getprojection(ScaleRatio((1 / 2, 1 / 2)), imbounds)
68-
@test getprojection(tfm2, kpbounds) getprojection(ScaleRatio((1 / 2, 1 / 2)), kpbounds)
64+
testprojective(tfm1)
65+
testprojective(tfm2)
6966
end
7067

7168

@@ -79,7 +76,7 @@ include("../imports.jl")
7976
@test_nowarn apply(tfm, keypoints)
8077
timage = apply(tfm, image)
8178
tkeypoints = apply(tfm, keypoints)
82-
@test getbounds(timage).rs == (1:25, 1:25)
79+
@test length.(getbounds(timage).rs) == (25, 25)
8380
@test getbounds(timage) == getbounds(tkeypoints)
8481
testprojective(tfm)
8582

test/projective/crop.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ end
2525
item = Image(img)
2626
tfm = ResizePadDivisible((32, 32), 4)
2727
titem = apply(tfm, item)
28-
@show size(titem.data)
2928
@test size(titem.data) == (32, 48)
3029
end

0 commit comments

Comments
 (0)