@@ -535,7 +535,7 @@ final class LocalSwiftTests: XCTestCase {
535
535
// Expected Fix-it: Replace `let a` with `_` because it's never used
536
536
let expectedTextEdit = TextEdit ( range: Position ( line: 1 , utf16index: 7 ) ..< Position ( line: 1 , utf16index: 7 ) , newText: " ? " )
537
537
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" ,
539
539
kind: . quickFix,
540
540
diagnostics: nil ,
541
541
edit: WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) ,
@@ -550,7 +550,7 @@ final class LocalSwiftTests: XCTestCase {
550
550
// Expected Fix-it: Replace `let a` with `_` because it's never used
551
551
let expectedTextEdit = TextEdit ( range: Position ( line: 1 , utf16index: 7 ) ..< Position ( line: 1 , utf16index: 7 ) , newText: " ! " )
552
552
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'" ,
554
554
kind: . quickFix,
555
555
diagnostics: nil ,
556
556
edit: WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) ,
@@ -691,19 +691,19 @@ final class LocalSwiftTests: XCTestCase {
691
691
692
692
for fixit in quickFixes {
693
693
if fixit. title. contains ( " ! " ) {
694
- XCTAssert ( fixit. title. starts ( with: " force -unwrap using '!'" ) )
694
+ XCTAssert ( fixit. title. starts ( with: " Force -unwrap using '!'" ) )
695
695
expectedTextEdit. newText = " ! "
696
696
XCTAssertEqual ( fixit. edit, WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) )
697
697
} else {
698
- XCTAssert ( fixit. title. starts ( with: " chain the optional using '?'" ) )
698
+ XCTAssert ( fixit. title. starts ( with: " Chain the optional using '?'" ) )
699
699
expectedTextEdit. newText = " ? "
700
700
XCTAssertEqual ( fixit. edit, WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) )
701
701
}
702
702
XCTAssertEqual ( fixit. kind, . quickFix)
703
703
XCTAssertEqual ( fixit. diagnostics? . count, 1 )
704
704
XCTAssertEqual ( fixit. diagnostics? . first? . severity, . error)
705
705
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 )
707
707
}
708
708
}
709
709
@@ -788,7 +788,7 @@ final class LocalSwiftTests: XCTestCase {
788
788
XCTAssertEqual ( quickFixes. count, 1 )
789
789
guard let fixit = quickFixes. first else { return }
790
790
791
- XCTAssertEqual ( fixit. title, " use 'new(_:hotness:)' instead" )
791
+ XCTAssertEqual ( fixit. title, " Use 'new(_:hotness:)' instead" )
792
792
XCTAssertEqual ( fixit. diagnostics? . count, 1 )
793
793
XCTAssert ( fixit. diagnostics? . first? . message. contains ( " is deprecated " ) == true )
794
794
XCTAssertEqual ( fixit. edit? . changes ? [ uri] , [
0 commit comments