[Tests] Add failing tests for weird conformance issue

This commit is contained in:
Adlai Holler
2016-07-14 11:06:22 -07:00
parent 3591f7a7c1
commit 65e194c7c6
2 changed files with 22 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
#import "ASDisplayNode+Subclasses.h"
#import "ASChangeSetDataController.h"
#import "ASCellNode.h"
#import "ASTableNode.h"
#define NumberOfSections 10
#define NumberOfRowsPerSection 20
@@ -518,4 +519,14 @@
}];
}
/**
* This may seem silly, but we had issues where the runtime sometimes wouldn't correctly report
* conformances declared on categories.
*/
- (void)testThatTableNodeConformsToExpectedProtocols
{
ASTableNode *node = [[ASTableNode alloc] initWithStyle:UITableViewStylePlain];
XCTAssert([node conformsToProtocol:@protocol(ASRangeControllerUpdateRangeProtocol)]);
}
@end