Skip to content

Commit 8e83ac3

Browse files
Max Moiseevmoiseev
authored andcommitted
Adjusting the tests to the new StringProtocol
1 parent bfb1824 commit 8e83ac3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/IDE/complete_at_top_level.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ func optStr() -> String? { return nil }
398398
let x = (optStr() ?? "autoclosure").#^TOP_LEVEL_AUTOCLOSURE_1^#
399399
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: characters[#String.CharacterView#]
400400
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: utf16[#String.UTF16View#]
401-
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: utf8[#String.UTF8View#]
401+
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: unicodeScalars[#String.UnicodeScalarView#]
402402

403403
func resyncParserB12() {}
404404

test/IDE/complete_value_expr.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,7 +1732,7 @@ func testThrows006() {
17321732
// Just sample some String API to sanity check.
17331733
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: characters[#String.CharacterView#]
17341734
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: utf16[#String.UTF16View#]
1735-
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: utf8[#String.UTF8View#]
1735+
// AUTOCLOSURE_STRING: Decl[InstanceVar]/CurrNominal: unicodeScalars[#String.UnicodeScalarView#]
17361736
func testWithAutoClosure1(_ x: String?) {
17371737
(x ?? "autoclosure").#^AUTOCLOSURE1^#
17381738
}

0 commit comments

Comments
 (0)