Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Removed instable test
Browse files Browse the repository at this point in the history
  • Loading branch information
ameingast committed Mar 31, 2019
1 parent 30ff852 commit fa8f061
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions CocoaImageHashingTests/OSSimilaritySearchTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,4 @@ - (void)testMemoryLeak
XCTAssertEqual([result count], expected, @"Invalid match count");
}

- (void)testDictionaryFromSimilarImagesResult
{
NSArray<NSArray<OSDataHolder *> *> *dataSet = [self similarImages];
NSUInteger representativesCount = [dataSet count];
NSUInteger binSize = [[dataSet firstObject] count] - 1;
NSMutableArray<OSTuple<OSImageId *, OSImageId *> *> *similarTuples = [dataSet valueForKeyPath:@"@unionOfArrays.name.@arrayWithPairCombinations"];
NSDictionary<OSImageId *, NSSet<OSImageId *> *> *result = [[OSImageHashing sharedInstance] dictionaryFromSimilarImagesResult:similarTuples];
XCTAssertEqual([result count], representativesCount, @"There should be %lu different representatives", (unsigned long)representativesCount);
XCTAssertEqualObjects([[result allValues] valueForKeyPath:@"@min.@count"], @(binSize), @"Representatives should not have less than %lu similar images", (unsigned long)binSize);
XCTAssertEqualObjects([[result allValues] valueForKeyPath:@"@max.@count"], @(binSize), @"Representatives should not have more than %lu similar images", (unsigned long)binSize);
}

@end

0 comments on commit fa8f061

Please sign in to comment.