Skip to content

Commit

Permalink
forgot to push updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Scikud committed Oct 16, 2023
1 parent 141b76a commit c4f7019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/python/bindings_test_returnlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def testRandomSelf(self):
bf_index.add_items(data)

# filter_function designed to return different number of elements for each query
filter_function = lambda index: index > (num_elements-2) if random.random() < 0.5 else index > (num_elements-1)
labels, distances = hnsw_index.knn_query_return_lists(data, k=1, num_threads=1, filter=filter_function)
filter_function = lambda index: index > (num_elements-3) if random.random() < 0.5 else index >= (num_elements-1)
labels, distances = hnsw_index.knn_query_return_lists(data, k=2, num_threads=1, filter=filter_function)

# Assert the return type for both labels and distances is a list
self.assertTrue(isinstance(labels, list))
Expand Down

0 comments on commit c4f7019

Please sign in to comment.