[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

@@ -48,7 +48,7 @@ func test_UnicodeScalarView(s: String.UnicodeScalarView, i: String.UnicodeScalar
_ = s.distance(from: i, to: i) // OK
}
func test_CharacterView(s: String.CharacterView, i: String.CharacterView.Index, d: Int) {
func test_CharacterView(s: String, i: String.Index, d: Int) {
_ = s.index(after: i) // OK
_ = s.index(before: i) // OK
_ = s.index(i, offsetBy: d) // OK