mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Additional test for method requested to be tested
This commit is contained in:
parent
ce9116cad3
commit
3b88b49eb0
1 changed files with 9 additions and 1 deletions
|
@ -49,7 +49,15 @@ int main()
|
|||
}];
|
||||
|
||||
PASS([indexes containsIndex: 6] && [indexes containsIndex: 9], "Returns correct indexes");
|
||||
|
||||
indexes = [mutableTest4
|
||||
indexesOfObjectsWithOptions:0
|
||||
passingTest:^BOOL(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||
return [obj isEqualToString:@"Horrible"] || [obj isEqualToString:@"Flee From"];
|
||||
}];
|
||||
NSLog(@"indexes = %@",indexes);
|
||||
PASS([indexes containsIndex:6] && [indexes containsIndex:9],
|
||||
"indexesOfObjectsWithOptions:passingTest: returns correct indexes");
|
||||
|
||||
# else
|
||||
SKIP("No Blocks support in the compiler.")
|
||||
# endif
|
||||
|
|
Loading…
Reference in a new issue