mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-07 11:17:12 +00:00
CPCompoundPredicate: Fixed typo in -isEqual:. With test.
This commit is contained in:
@@ -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