curran / curran/google-diff-match-patch

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

Open
#77 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
Python
Stars
17
Forks
2
PR merge metrics
No merged PRs in 30d

Description

```
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 `alans...@gmail.com` on 3 Aug 2012 at 12:08

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.