[tests] Update tests as String.CharacterView is deprecated

This commit is contained in:
Michael Ilseman
2017-08-11 12:32:39 -07:00
parent 7c705c3a75
commit a7b299b51b
9 changed files with 10 additions and 13 deletions

View File

@@ -82,7 +82,7 @@ func testStringCollectionTypes(s: String) {
acceptsBidirectionalCollection(s.unicodeScalars)
acceptsRandomAccessCollection(s.unicodeScalars) // expected-error{{argument type 'String.UnicodeScalarView' does not conform to expected type 'RandomAccessCollection'}}
acceptsCollection(s.characters)
acceptsBidirectionalCollection(s.characters)
acceptsRandomAccessCollection(s.characters) // expected-error{{argument type 'String.CharacterView' does not conform to expected type 'RandomAccessCollection'}}
acceptsCollection(s)
acceptsBidirectionalCollection(s)
acceptsRandomAccessCollection(s) // expected-error{{argument type 'String' does not conform to expected type 'RandomAccessCollection'}}
}