mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Add new tests for indexOfObjectAtIndexes:...
This commit is contained in:
parent
3b88b49eb0
commit
ae46b02ee2
1 changed files with 7 additions and 0 deletions
|
@ -58,6 +58,13 @@ int main()
|
|||
PASS([indexes containsIndex:6] && [indexes containsIndex:9],
|
||||
"indexesOfObjectsWithOptions:passingTest: returns correct indexes");
|
||||
|
||||
index = [mutableTest4 indexOfObjectAtIndexes:[NSIndexSet indexSetWithIndex: 6]
|
||||
options:0
|
||||
passingTest:^BOOL(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||
return [obj isEqualToString:@"Horrible"];
|
||||
}];
|
||||
PASS(index == 6, "indexOfObjectAtIndexes:... Returns correct index")
|
||||
|
||||
# else
|
||||
SKIP("No Blocks support in the compiler.")
|
||||
# endif
|
||||
|
|
Loading…
Reference in a new issue