From f713b045aca1137f99a2e11c5cdafdb929f4a527 Mon Sep 17 00:00:00 2001 From: Ash Vardanian <1983160+ashvardanian@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:56:47 -0700 Subject: [PATCH] Fix: C99 test to expect just one vector for key --- c/test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/c/test.c b/c/test.c index 22024528..4c51cc6f 100644 --- a/c/test.c +++ b/c/test.c @@ -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);