Skip to content

Commit

Permalink
Cleaned up indentation in PWDarcsChangePatchTest.m
Browse files Browse the repository at this point in the history
darcs-hash:20051217170543-5716c-3150c56325d5f106f10fc93f5a14651d1fa6a3b3.gz
  • Loading branch information
jmah committed Dec 17, 2005
1 parent f4df33b commit 8a96050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Shared Source/Classes/Model/PWDarcsChangePatch.m
Expand Up @@ -108,9 +108,9 @@ - (id)initWithOpenGzFile:(gzFile)gzPatchFile alreadyReadString:(NSString *)currP
// Read in the next line of the patch. If we read "] {\n" then we know this patch will definitely never match the regexp.
char lineBuffer[LINE_BUFFER_LENGH];
char *line = gzgets(PW_gzPatchFile, lineBuffer, LINE_BUFFER_LENGH);
// zlib.h says gzgets should never return Z_NULL, but this can often signal the end-of-file, so we need to check it here
if (line != Z_NULL)
{
// zlib.h says gzgets should never return Z_NULL, but this can often signal the end-of-file, so we need to check it here
NSString *newLine = [NSString stringWithCString:line encoding:PATCH_STRING_ENCODING];
[PW_currPatchString appendString:newLine];
if ([newLine isEqualToString:@"] {\n"])
Expand Down
2 changes: 1 addition & 1 deletion Shared Source/Tests/PWDarcsChangePatchTest.m
Expand Up @@ -87,7 +87,7 @@ - (void)testCompressedChangePatchWithLongComment
@"Patch type not correctly set.");
STAssertEqualObjects([(PWDarcsChangePatch *)patch longComment], @" Some or all of the OgreKit framework's headers have no newlines at the end of\n the file. Enabling this warning triggers it every time one of Patchworks's\n source files includes an OgreKit header. And it's not a big deal anyway.",
@"Long comment didn't correctly parse.");
}
}


- (void)testUncompressedChangePatch
Expand Down

0 comments on commit 8a96050

Please sign in to comment.