@@ -535,7 +535,7 @@ final class LocalSwiftTests: XCTestCase {
535535 // Expected Fix-it: Replace `let a` with `_` because it's never used
536536 let expectedTextEdit = TextEdit ( range: Position ( line: 1 , utf16index: 7 ) ..< Position ( line: 1 , utf16index: 7 ) , newText: " ? " )
537537 XCTAssertEqual ( fixit, CodeAction (
538- title: " chain the optional using '?' to access member 'bigEndian' only for non-'nil' base values" ,
538+ title: " Chain the optional using '?' to access member 'bigEndian' only for non-'nil' base values" ,
539539 kind: . quickFix,
540540 diagnostics: nil ,
541541 edit: WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) ,
@@ -550,7 +550,7 @@ final class LocalSwiftTests: XCTestCase {
550550 // Expected Fix-it: Replace `let a` with `_` because it's never used
551551 let expectedTextEdit = TextEdit ( range: Position ( line: 1 , utf16index: 7 ) ..< Position ( line: 1 , utf16index: 7 ) , newText: " ! " )
552552 XCTAssertEqual ( fixit, CodeAction (
553- title: " force -unwrap using '!' to abort execution if the optional value contains 'nil'" ,
553+ title: " Force -unwrap using '!' to abort execution if the optional value contains 'nil'" ,
554554 kind: . quickFix,
555555 diagnostics: nil ,
556556 edit: WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) ,
@@ -691,19 +691,19 @@ final class LocalSwiftTests: XCTestCase {
691691
692692 for fixit in quickFixes {
693693 if fixit. title. contains ( " ! " ) {
694- XCTAssert ( fixit. title. starts ( with: " force -unwrap using '!'" ) )
694+ XCTAssert ( fixit. title. starts ( with: " Force -unwrap using '!'" ) )
695695 expectedTextEdit. newText = " ! "
696696 XCTAssertEqual ( fixit. edit, WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) )
697697 } else {
698- XCTAssert ( fixit. title. starts ( with: " chain the optional using '?'" ) )
698+ XCTAssert ( fixit. title. starts ( with: " Chain the optional using '?'" ) )
699699 expectedTextEdit. newText = " ? "
700700 XCTAssertEqual ( fixit. edit, WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) )
701701 }
702702 XCTAssertEqual ( fixit. kind, . quickFix)
703703 XCTAssertEqual ( fixit. diagnostics? . count, 1 )
704704 XCTAssertEqual ( fixit. diagnostics? . first? . severity, . error)
705705 XCTAssertEqual ( fixit. diagnostics? . first? . range, Range ( Position ( line: 1 , utf16index: 6 ) ) )
706- XCTAssert ( fixit. diagnostics? . first? . message. starts ( with: " value of optional type" ) == true )
706+ XCTAssert ( fixit. diagnostics? . first? . message. starts ( with: " Value of optional type" ) == true )
707707 }
708708 }
709709
@@ -788,7 +788,7 @@ final class LocalSwiftTests: XCTestCase {
788788 XCTAssertEqual ( quickFixes. count, 1 )
789789 guard let fixit = quickFixes. first else { return }
790790
791- XCTAssertEqual ( fixit. title, " use 'new(_:hotness:)' instead" )
791+ XCTAssertEqual ( fixit. title, " Use 'new(_:hotness:)' instead" )
792792 XCTAssertEqual ( fixit. diagnostics? . count, 1 )
793793 XCTAssert ( fixit. diagnostics? . first? . message. contains ( " is deprecated " ) == true )
794794 XCTAssertEqual ( fixit. edit? . changes ? [ uri] , [
0 commit comments