Skip to content

Commit

Permalink
adjusted expected values in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomknig committed Jun 20, 2014
1 parent fd2c22f commit 26e9e4b
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ - (void)test_unicode_superset
NSString *newString = @"1⃣2⃣3⃣";
NSString *oldString = @"2⃣";

[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(0, 1)]];
[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(2, 1)]];
[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(0, 2)]];
[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(4, 2)]];

expectedResult[kTOMSDictionaryKeyMergedString] = mergeString;
expectedResult[kTOMSDictionaryKeyAdditionRanges] = additionRanges;
Expand All @@ -376,11 +376,11 @@ - (void)test_unicode_fuzzy_merge
NSString *newString = @"1⃣3⃣4⃣";
NSString *oldString = @"2⃣3⃣5⃣";

[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(0, 1)]];
[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(3, 1)]];
[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(0, 2)]];
[additionRanges addObject:[NSValue valueWithRange:NSMakeRange(6, 2)]];

[deletionRanges addObject:[NSValue valueWithRange:NSMakeRange(1, 1)]];
[deletionRanges addObject:[NSValue valueWithRange:NSMakeRange(4, 1)]];
[deletionRanges addObject:[NSValue valueWithRange:NSMakeRange(2, 2)]];
[deletionRanges addObject:[NSValue valueWithRange:NSMakeRange(8, 2)]];

expectedResult[kTOMSDictionaryKeyMergedString] = mergeString;
expectedResult[kTOMSDictionaryKeyAdditionRanges] = additionRanges;
Expand All @@ -389,5 +389,4 @@ - (void)test_unicode_fuzzy_merge
[self assertMergeOfString:newString intoString:oldString expectedResult:expectedResult];
}


@end

0 comments on commit 26e9e4b

Please sign in to comment.