mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-19 08:31:11 +00:00
Added text to cheer myself up.
This commit is contained in:
parent
57087cc7c6
commit
39840feae7
@ -81,11 +81,16 @@ constexpr char TestSuiteHome[] = "/Users/tharte/Projects/ProcessorTests/8088/v1"
|
||||
for(NSString *file in [self testFiles]) {
|
||||
NSData *data = [NSData dataWithContentsOfGZippedFile:file];
|
||||
NSArray<NSDictionary *> *testsInFile = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
|
||||
NSUInteger successes = 0;
|
||||
for(NSDictionary *test in testsInFile) {
|
||||
// A single failure per instruction is fine.
|
||||
if(![self applyDecodingTest:test]) {
|
||||
break;
|
||||
}
|
||||
++successes;
|
||||
}
|
||||
if(successes != [testsInFile count]) {
|
||||
NSLog(@"Failed after %ld successes", successes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user