mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-19 06:51:18 +00:00
CPCompoundPredicate: Fixed typo in -isEqual:. With test.
This commit is contained in:
1 parent
ec9ddc0819
commit
ce2316a8ee
2 files changed
+5
-1
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user