Merge pull request #1422 from cacaodev/CPPredicate

CPCompoundPredicate -isEqual: typo.
This commit is contained in:
Antoine Mercadal committed 2012-01-02 03:22:02 -08:00
commit 1189e8c849
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -233,7 +233,7 @@ var CPCompoundPredicateType;
if (self === anObject)
return YES;
if (object.isa !== self.isa || _type !== [anObject compoundPredicateType] || ![_predicates isEqualToArray:[anObject subpredicates]])
if (anObject.isa !== self.isa || _type !== [anObject compoundPredicateType] || ![_predicates isEqualToArray:[anObject subpredicates]])
return NO;
return YES;
+4
View File
@@ -434,6 +434,10 @@
pred1 = [CPPredicate predicateWithFormat:@"$x CONTAINS 'a'"];
pred2 = [CPPredicate predicateWithFormat:@"$x CONTAINS 'a'"];
[self assert:pred1 equals:pred2];
pred1 = [CPPredicate predicateWithFormat:@"a = 'a' AND b = 'b'"];
pred2 = [CPPredicate predicateWithFormat:@"a = 'a' AND b = 'b'"];
[self assert:pred1 equals:pred2];
}
- (void)testProxyArrayFiltering