Skip to content

Commit

Permalink
Add unit test for bug #43
Browse files Browse the repository at this point in the history
  • Loading branch information
hpique committed Oct 4, 2014
1 parent b126949 commit a60d230
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions HanekeTests/HNKDiskCacheTests.m
Expand Up @@ -280,6 +280,18 @@ - (void)testRemoveAllData
});
}

- (void)testRemoveAllData_ThenSetData {
_sut = [[HNKDiskCache alloc] initWithDirectory:_directory capacity:LONG_LONG_MAX];

[_sut removeAllData];

NSData *data = [self _dataWithSize:23];
[_sut setData:data forKey:@"1"];
dispatch_sync(_sut.queue, ^{
XCTAssertTrue(_sut.size > 0, @"");
});
}

- (void)testEnumerateDataByAccessDateUsingBlock_One
{
_sut = [[HNKDiskCache alloc] initWithDirectory:_directory capacity:LONG_LONG_MAX];
Expand Down

0 comments on commit a60d230

Please sign in to comment.