Skip to content

Commit

Permalink
CBL-5541 : Update vector search test per changes in v1.8
Browse files Browse the repository at this point in the history
* Port the change from release/3.2 branch.
* Test 5, 6, 10, 11, 12, 13, 14, 16, 17, 18, 20, 22, 23, 24, 25 : Use centroids = 8.
* Test 5, 6, 7, 8, 9, 10, 11, 12, 14, 17, 18, 20, 22, 24, 25 : Verify that the index is trained.
* Test16 : Verify that the index is untrained.
* Test 20 : Add the step to create the query after the index was deleted.
  • Loading branch information
pasin authored Mar 20, 2024
1 parent d74db16 commit 53429d3
Show file tree
Hide file tree
Showing 5 changed files with 618 additions and 387 deletions.
2 changes: 2 additions & 0 deletions Objective-C/Tests/CustomLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ NS_ASSUME_NONNULL_BEGIN

- (void) reset;

- (BOOL) containsString: (NSString *)string;

@end

NS_ASSUME_NONNULL_END
9 changes: 9 additions & 0 deletions Objective-C/Tests/CustomLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ - (void) reset {
[_lines removeAllObjects];
}

- (BOOL) containsString: (NSString *)string {
for (NSString* line in _lines) {
if ([line containsString: string]) {
return YES;
}
}
return NO;
}

- (void)logWithLevel: (CBLLogLevel)level domain: (CBLLogDomain)domain message: (NSString*)message {
[_lines addObject: message];
}
Expand Down
Loading

0 comments on commit 53429d3

Please sign in to comment.