@@ -200,16 +200,16 @@ final class TestAttributedString: XCTestCase {
200
200
201
201
let middleRange = attrStr. characters. index ( attrStr. startIndex, offsetBy: 3 ) ..< attrStr. characters. index ( attrStr. endIndex, offsetBy: - 3 )
202
202
let view = attrStr [ middleRange] . runs
203
- verifyAttributes ( view [ nsAttributedStringKeys: . testInt] , string: attrStr, expectation: [ ( " lo " , . init( ) . testInt ( 1 ) ) , ( " Wo " , . init( ) ) ] )
204
- verifyAttributes ( view [ nsAttributedStringKeys: . testDouble] , string: attrStr, expectation: [ ( " lo " , . init( ) ) , ( " Wo " , . init( ) . testDouble ( 2.0 ) ) ] )
205
- verifyAttributes ( view [ nsAttributedStringKeys: . testString] , string: attrStr, expectation: [ ( " lo Wo " , . init( ) ) ] )
206
- verifyAttributes ( view [ nsAttributedStringKeys: . testInt, . testDouble] , string: attrStr, expectation: [ ( " lo " , . init( ) . testInt ( 1 ) ) , ( " " , . init( ) ) , ( " Wo " , . init( ) . testDouble ( 2.0 ) ) ] )
203
+ verifyAttributes ( view [ nsAttributedStringKeys: [ . testInt] ] , string: attrStr, expectation: [ ( " lo " , . init( ) . testInt ( 1 ) ) , ( " Wo " , . init( ) ) ] )
204
+ verifyAttributes ( view [ nsAttributedStringKeys: [ . testDouble] ] , string: attrStr, expectation: [ ( " lo " , . init( ) ) , ( " Wo " , . init( ) . testDouble ( 2.0 ) ) ] )
205
+ verifyAttributes ( view [ nsAttributedStringKeys: [ . testString] ] , string: attrStr, expectation: [ ( " lo Wo " , . init( ) ) ] )
206
+ verifyAttributes ( view [ nsAttributedStringKeys: [ . testInt, . testDouble] ] , string: attrStr, expectation: [ ( " lo " , . init( ) . testInt ( 1 ) ) , ( " " , . init( ) ) , ( " Wo " , . init( ) . testDouble ( 2.0 ) ) ] )
207
207
208
208
attrStr [ middleRange] . testString = " Test "
209
- verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: . testInt] , string: attrStr, expectation: [ ( " Hello " , . init( ) . testInt ( 1 ) ) , ( " World " , . init( ) ) ] )
210
- verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: . testDouble] , string: attrStr, expectation: [ ( " Hello " , . init( ) ) , ( " World " , . init( ) . testDouble ( 2.0 ) ) ] )
211
- verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: . testString] , string: attrStr, expectation: [ ( " Hel " , . init( ) ) , ( " lo Wo " , . init( ) . testString ( " Test " ) ) , ( " rld " , . init( ) ) ] )
212
- verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: . testInt, . testDouble, . testString] , string: attrStr, expectation: [
209
+ verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: [ . testInt] ] , string: attrStr, expectation: [ ( " Hello " , . init( ) . testInt ( 1 ) ) , ( " World " , . init( ) ) ] )
210
+ verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: [ . testDouble] ] , string: attrStr, expectation: [ ( " Hello " , . init( ) ) , ( " World " , . init( ) . testDouble ( 2.0 ) ) ] )
211
+ verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: [ . testString] ] , string: attrStr, expectation: [ ( " Hel " , . init( ) ) , ( " lo Wo " , . init( ) . testString ( " Test " ) ) , ( " rld " , . init( ) ) ] )
212
+ verifyAttributes ( attrStr. runs [ nsAttributedStringKeys: [ . testInt, . testDouble, . testString] ] , string: attrStr, expectation: [
213
213
( " Hel " , . init( ) . testInt ( 1 ) ) ,
214
214
( " lo " , . init( ) . testInt ( 1 ) . testString ( " Test " ) ) ,
215
215
( " " , . init( ) . testString ( " Test " ) ) ,
0 commit comments