Skip to content

Commit

Permalink
test for BoundsError on skip = i -> true
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed Oct 25, 2021
1 parent ac0338c commit 0d8e8eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_knn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ end

idxs, dists = knn(tree, data[:, 10], 2, true, i -> i == first_idx)
@test idxs[1] == second_idx

idxs, dists = knn(tree, data[:,10], 1, true, i -> true)
end
data = rand(2, 1000)
test(data)
Expand Down

0 comments on commit 0d8e8eb

Please sign in to comment.