diff --git a/Objective-C/Tests/VectorSearchTest.m b/Objective-C/Tests/VectorSearchTest.m index 47dcb8b34..f38d931d2 100644 --- a/Objective-C/Tests/VectorSearchTest.m +++ b/Objective-C/Tests/VectorSearchTest.m @@ -360,7 +360,7 @@ - (void) _testCreateVectorIndexUsingPredictionModelWithInvalidVectors { Assert([collection createIndexWithName: @"words_pred_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_pred_index"]); + Assert([names containsObject: @"words_pred_index"]); // Query: NSString* sql = @"select meta().id, word from _default.words where vector_match(words_pred_index, $vector, 350)"; @@ -400,7 +400,7 @@ - (void) testCreateVectorIndexWithSQ { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Query: NSString* sql = @"select meta().id, word from _default.words where vector_match(words_index, $vector, 20)"; @@ -675,7 +675,7 @@ - (void) testCreateVectorIndexWithEuclideanDistance { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Query: NSString* sql = @"select meta().id, word, vector_distance(words_index) from _default.words where vector_match(words_index, $vector, 20)"; @@ -726,7 +726,7 @@ - (void) testDeleteVectorIndex { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Query: NSString* sql = @"select meta().id, word from _default.words where vector_match(words_index, $vector, 20)"; @@ -769,7 +769,7 @@ - (void) _testVectorMatchDefaultLimit { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Query: NSString* sql = @"select meta().id, word from _default.words where vector_match(words_index, $vector)"; @@ -800,7 +800,7 @@ - (void) _testVectorMatchLimitBoundary { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Check valid query with 1 and 10000 set limit int goodValues[2] = {1, 10000}; @@ -832,7 +832,7 @@ - (void) testVectorMatchWithAndExpression { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Query with a single AND: NSString* sql = @"select meta().id, word, catid from _default.words where vector_match(words_index, $vector, 300) AND catid = 'cat1'"; @@ -866,7 +866,7 @@ - (void) testVectorMatchWithMultipleAndExpression { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Query with mutiple ANDs: NSString* sql = @"select meta().id, word, catid from _default.words where (vector_match(words_index, $vector, 300) AND word is valued) AND catid = 'cat1'"; @@ -901,7 +901,7 @@ - (void) _testInvalidVectorMatchWithOrExpression { Assert([collection createIndexWithName: @"words_index" config: config error: &error]); NSArray* names = [collection indexes: &error]; - Assert([names containsObject:@"words_index"]); + Assert([names containsObject: @"words_index"]); // Query with OR: NSString* sql = @"select meta().id, word, catid from _default.words where vector_match(words_index, $vector, 300) OR catid = 'cat1'";