Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 4.4 compile error in DiffMatchPatchTest.m (trivial fix) #77

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Attempt to compile in Xcode 4.4
2. See errors in line 841 of DiffMathPatchTest.m

Please provide any additional information below.

Fix is simple:

--- a/Tests/DiffMatchPatchTest.m
+++ b/Tests/DiffMatchPatchTest.m
@@ -838,8 +838,8 @@
   diffs = [NSMutableArray arrayWithObjects:[Diff diffWithOperation:DIFF_DELETE andText:@"Apple"], [
   STAssertEqualObjects(diffs, [dmp diff_mainOfOldString:@"Apples are a fruit." andNewString:@"Banan

-  diffs = [NSMutableArray arrayWithObjects:[Diff diffWithOperation:DIFF_DELETE 
andText:@"a"], [Diff
-  NSString *aString = [NSString stringWithFormat:@"\U00000680x%C", 0];
+  diffs = [NSMutableArray arrayWithObjects:[Diff diffWithOperation:DIFF_DELETE 
andText:@"a"], [Diff
+  NSString *aString = [NSString stringWithFormat:@"\U00000680x%C", (unichar) 
0];
   STAssertEqualObjects(diffs, [dmp diff_mainOfOldString:@"ax\t" andNewString:aString checkLines:NO]

   diffs = [NSMutableArray arrayWithObjects:[Diff diffWithOperation:DIFF_DELETE andText:@"1"], [Diff

Original issue reported on code.google.com by [email protected] on 3 Aug 2012 at 12:08

@GoogleCodeExporter
Copy link
Author

Patch file attached.

Original comment by [email protected] on 3 Aug 2012 at 12:10

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant