File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,11 @@ extension XCTestSuite: Listable {
75
75
}
76
76
77
77
func dictionaryRepresentation( ) -> NSDictionary {
78
- let listedTests = tests. flatMap ( { ( $0 as? Listable ) ? . dictionaryRepresentation ( ) } )
79
- return [
80
- " name " : listingName . bridge ( ) ,
81
- " tests " : listedTests . bridge ( )
82
- ] . bridge ( )
78
+ let listedTests = NSArray ( array : tests. flatMap ( { ( $0 as? Listable ) ? . dictionaryRepresentation ( ) } ) )
79
+ return NSDictionary ( objects : [ NSString ( string : listingName ) ,
80
+ listedTests ] ,
81
+ forKeys : [ NSString ( string : " name " ) ,
82
+ NSString ( string : " tests " ) ] )
83
83
}
84
84
85
85
func findBundleTestSuite( ) -> XCTestSuite ? {
@@ -102,6 +102,6 @@ extension XCTestCase: Listable {
102
102
103
103
func dictionaryRepresentation( ) -> NSDictionary {
104
104
let methodName = String ( name. characters. split ( separator: " . " ) . last!)
105
- return [ " name " : methodName] . bridge ( )
105
+ return NSDictionary ( object : NSString ( string : methodName) , forKey : NSString ( string : " name " ) )
106
106
}
107
107
}
You can’t perform that action at this time.
0 commit comments