Skip to content

Commit 1bc7795

Browse files
authored
Fix a broken test (#103)
1 parent 54ce4df commit 1bc7795

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
matrix:
1515
version:
1616
- '1.0'
17+
- '1.6'
1718
- '1'
1819
# - 'nightly'
1920
os:

test/brief.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ end
164164
desc_1, ret_keypoints_1 = create_descriptor(img_array_1, keypoints_1, brief_params)
165165
desc_2, ret_keypoints_2 = create_descriptor(img_array_2, keypoints_2, brief_params)
166166
matches = match_keypoints(ret_keypoints_1, ret_keypoints_2, desc_1, desc_2, 0.1)
167-
@test sum(m[1] + CartesianIndex(100, 200) == m[2] for m in matches) + 1 == length(matches)
167+
# Julia <=1.6 give a slightly different answer from 1.9
168+
@test sum(m[1] + CartesianIndex(100, 200) == m[2] for m in matches) >= length(matches) - 1
168169
end
169170

170171
@testset "Testing with Standard Images - Lena (Translation (10, 20))" begin

0 commit comments

Comments
 (0)