Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
velicuvlad committed Mar 5, 2024
1 parent 8c592be commit 473f56c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Objective-C/Tests/VectorSearchTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)";
Expand Down Expand Up @@ -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)";
Expand Down Expand Up @@ -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)";
Expand Down Expand Up @@ -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)";
Expand Down Expand Up @@ -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)";
Expand Down Expand Up @@ -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};
Expand Down Expand Up @@ -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'";
Expand Down Expand Up @@ -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'";
Expand Down Expand Up @@ -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'";
Expand Down

0 comments on commit 473f56c

Please sign in to comment.