mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix NSPredicate test using GCC
This commit is contained in:
parent
8f8585405e
commit
179158dbc5
1 changed files with 4 additions and 2 deletions
|
@ -250,8 +250,10 @@ int main()
|
|||
p = [NSPredicate predicateWithFormat: @"sum(a) == 3"];
|
||||
PASS([p evaluateWithObject: a], "aggregate sum works");
|
||||
|
||||
p = [NSPredicate predicateWithFormat: @"self IN %@", @[@"yes"]];
|
||||
a = [@[@"yes", @"no"] filteredArrayUsingPredicate: p];
|
||||
p = [NSPredicate predicateWithFormat: @"self IN %@",
|
||||
[NSArray arrayWithObject:@"yes"]];
|
||||
a = [[NSArray arrayWithObjects:@"yes", @"no", nil]
|
||||
filteredArrayUsingPredicate: p];
|
||||
PASS_EQUAL([a description], @"(yes)",
|
||||
"predicate created with format can filter an array")
|
||||
|
||||
|
|
Loading…
Reference in a new issue