Skip to content

Commit

Permalink
Fix: C99 test to expect just one vector for key
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Sep 30, 2023
1 parent a0e514d commit f713b04
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions c/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,10 @@ void test_find_vector(size_t const collection_size, size_t const dimensions) {

// Find the vectors
for (size_t i = 0; i < collection_size; i++) {
const void* query_vector = data + i * dimensions;
size_t found_count =
usearch_search(idx, query_vector, usearch_scalar_f32_k, collection_size, keys, distances, &error);
usearch_search(idx, data + i * dimensions, usearch_scalar_f32_k, collection_size, keys, distances, &error);
ASSERT(!error, error);
ASSERT(found_count == collection_size, "Vector is missing");
ASSERT(found_count == 1, "Vector is missing");
}

free(data);
Expand Down

0 comments on commit f713b04

Please sign in to comment.