report error for negative readBytes (invalid password)

This commit is contained in:
Antoine Cœur
2017-10-04 20:21:07 +08:00
parent 6bf9406cff
commit b7097ae6bb
2 changed files with 20 additions and 3 deletions
@@ -186,7 +186,7 @@
NSError *error = nil;
BOOL success = [SSZipArchive unzipFileAtPath:zipPath toDestination:outputPath overwrite:YES password:@"passw0rd123" error:&error delegate:self];
XCTAssertTrue(success);
XCTAssertFalse(success);
NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *testPath = [outputPath stringByAppendingPathComponent:@"Readme.markdown"];