@@ -237,11 +237,13 @@ - (void)testExtractFiles_Aces
237237
238238- (void )testExtractZip64_LargeFile
239239{
240- NSURL *fourGigFileURL = [self emptyTextFileOfLength: 4 * pow (2.0 , 30.0 )];
241- NSURL *smallFileURL = [self emptyTextFileOfLength: 4 ];
240+ NSArray <NSURL *> *urls = @[
241+ [self emptyTextFileOfLength: 4 * pow (2.0 , 30.0 )],
242+ self .unicodeFileURLs[@" Test File Ⓐ.txt" ]
243+ ];
242244
243245 NSError *error = nil ;
244- NSURL *url = [self archiveWithFiles: @[fourGigFileURL, smallFileURL] ];
246+ NSURL *url = [self archiveWithFiles: urls ];
245247 UZKArchive *archive = [[UZKArchive alloc ] initWithURL: url error: &error];
246248
247249 XCTAssertNil (error, @" Failed to init archive" );
@@ -263,6 +265,20 @@ - (void)testExtractZip64_LargeFile
263265
264266 XCTAssertTrue (success, @" Extract large Zip64 archive failed" );
265267 XCTAssertNil (error, @" Error extracting large Zip64 archive" );
268+
269+ NSArray *expectedCRCs = @[
270+ @([self crcOfFile: urls[0 ]]),
271+ @([self crcOfFile: urls[1 ]])
272+ ];
273+
274+ NSArray *actualCRCs = @[
275+ @([self crcOfFile: [extractURL URLByAppendingPathComponent: urls[0 ].lastPathComponent]]),
276+ @([self crcOfFile: [extractURL URLByAppendingPathComponent: urls[1 ].lastPathComponent]]),
277+ ];
278+
279+ for (NSUInteger i = 0 ; i < expectedCRCs.count ; i++) {
280+ XCTAssertEqualObjects (expectedCRCs[i], actualCRCs[i], @" CRCs didn't match" );
281+ }
266282}
267283
268284- (void )testExtractZip64_ManyFiles
0 commit comments