mirror of
https://github.com/TomHarte/CLK.git
synced 2024-09-29 16:55:59 +00:00
Avoid manual index counting.
This commit is contained in:
parent
5cb0aebdf4
commit
823c7765f8
@ -239,10 +239,8 @@ namespace {
|
|||||||
options:0
|
options:0
|
||||||
error:nil];
|
error:nil];
|
||||||
|
|
||||||
int testNumber = 0;
|
[tests enumerateObjectsUsingBlock:^(NSDictionary * _Nonnull test, NSUInteger index, BOOL * _Nonnull stop) {
|
||||||
for(NSDictionary *test in tests) {
|
NSLog(@"Test index %lu", static_cast<unsigned long>(index));
|
||||||
NSLog(@"Test index %d", testNumber);
|
|
||||||
++testNumber;
|
|
||||||
|
|
||||||
// Apply state.
|
// Apply state.
|
||||||
const bool highRes = [test[@"hires"] boolValue];
|
const bool highRes = [test[@"hires"] boolValue];
|
||||||
@ -306,12 +304,13 @@ namespace {
|
|||||||
|
|
||||||
if(physical != foundPhysical) {
|
if(physical != foundPhysical) {
|
||||||
NSLog(@"Stopping after first failure");
|
NSLog(@"Stopping after first failure");
|
||||||
|
*stop = YES;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(physical != physicalEnd) ++physical;
|
if(physical != physicalEnd) ++physical;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue
Block a user