Add new tests for indexOfObjectAtIndexes:...

This commit is contained in:
Gregory John Casamento 2019-07-01 19:23:45 -04:00
parent 3b88b49eb0
commit ae46b02ee2

View file

@ -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