@@ -447,7 +447,7 @@ final class LocalSwiftTests: XCTestCase {
447
447
XCTAssertEqual (
448
448
fixit,
449
449
CodeAction (
450
- title: " chain the optional using '?' to access member 'bigEndian' only for non-'nil' base values" ,
450
+ title: " Chain the optional using '?' to access member 'bigEndian' only for non-'nil' base values" ,
451
451
kind: . quickFix,
452
452
diagnostics: nil ,
453
453
edit: WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) ,
@@ -469,7 +469,7 @@ final class LocalSwiftTests: XCTestCase {
469
469
XCTAssertEqual (
470
470
fixit,
471
471
CodeAction (
472
- title: " force -unwrap using '!' to abort execution if the optional value contains 'nil'" ,
472
+ title: " Force -unwrap using '!' to abort execution if the optional value contains 'nil'" ,
473
473
kind: . quickFix,
474
474
diagnostics: nil ,
475
475
edit: WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) ,
@@ -627,19 +627,19 @@ final class LocalSwiftTests: XCTestCase {
627
627
628
628
for fixit in quickFixes {
629
629
if fixit. title. contains ( " ! " ) {
630
- XCTAssert ( fixit. title. starts ( with: " force -unwrap using '!'" ) )
630
+ XCTAssert ( fixit. title. starts ( with: " Force -unwrap using '!'" ) )
631
631
expectedTextEdit. newText = " ! "
632
632
XCTAssertEqual ( fixit. edit, WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) )
633
633
} else {
634
- XCTAssert ( fixit. title. starts ( with: " chain the optional using '?'" ) )
634
+ XCTAssert ( fixit. title. starts ( with: " Chain the optional using '?'" ) )
635
635
expectedTextEdit. newText = " ? "
636
636
XCTAssertEqual ( fixit. edit, WorkspaceEdit ( changes: [ uri: [ expectedTextEdit] ] , documentChanges: nil ) )
637
637
}
638
638
XCTAssertEqual ( fixit. kind, . quickFix)
639
639
XCTAssertEqual ( fixit. diagnostics? . count, 1 )
640
640
XCTAssertEqual ( fixit. diagnostics? . first? . severity, . error)
641
641
XCTAssertEqual ( fixit. diagnostics? . first? . range, Range ( Position ( line: 1 , utf16index: 6 ) ) )
642
- XCTAssert ( fixit. diagnostics? . first? . message. starts ( with: " value of optional type" ) == true )
642
+ XCTAssert ( fixit. diagnostics? . first? . message. starts ( with: " Value of optional type" ) == true )
643
643
}
644
644
}
645
645
@@ -729,7 +729,7 @@ final class LocalSwiftTests: XCTestCase {
729
729
XCTAssertEqual ( quickFixes. count, 1 )
730
730
guard let fixit = quickFixes. first else { return }
731
731
732
- XCTAssertEqual ( fixit. title, " use 'new(_:hotness:)' instead" )
732
+ XCTAssertEqual ( fixit. title, " Use 'new(_:hotness:)' instead" )
733
733
XCTAssertEqual ( fixit. diagnostics? . count, 1 )
734
734
XCTAssert ( fixit. diagnostics? . first? . message. contains ( " is deprecated " ) == true )
735
735
XCTAssertEqual (
@@ -1627,7 +1627,7 @@ final class LocalSwiftTests: XCTestCase {
1627
1627
1628
1628
let diagnostic = try await testClient. nextDiagnosticsNotification ( )
1629
1629
let diag = try XCTUnwrap ( diagnostic. diagnostics. first)
1630
- XCTAssertEqual ( diag. message, " cannot find 'bar' in scope" )
1630
+ XCTAssertEqual ( diag. message, " Cannot find 'bar' in scope" )
1631
1631
1632
1632
// Ensure that we don't get a second `PublishDiagnosticsNotification`
1633
1633
await assertThrowsError ( try await testClient. nextDiagnosticsNotification ( timeout: 2 ) )
0 commit comments