@@ -253,7 +253,7 @@ final class DoccDocumentationTests: XCTestCase {
253
253
DidChangeTextDocumentNotification (
254
254
textDocument: VersionedTextDocumentIdentifier ( uri, version: 2 ) ,
255
255
contentChanges: [
256
- TextDocumentContentChangeEvent ( range: positions [ " 1️⃣ " ] ..< positions [ " 1️⃣ " ] , text: " very " )
256
+ TextDocumentContentChangeEvent ( range: Range ( positions [ " 1️⃣ " ] ) , text: " very " )
257
257
]
258
258
)
259
259
)
@@ -366,7 +366,7 @@ final class DoccDocumentationTests: XCTestCase {
366
366
DidChangeTextDocumentNotification (
367
367
textDocument: VersionedTextDocumentIdentifier ( uri, version: 2 ) ,
368
368
contentChanges: [
369
- TextDocumentContentChangeEvent ( range: positions [ " 1️⃣ " ] ..< positions [ " 1️⃣ " ] , text: " very " )
369
+ TextDocumentContentChangeEvent ( range: Range ( positions [ " 1️⃣ " ] ) , text: " very " )
370
370
]
371
371
)
372
372
)
@@ -410,7 +410,7 @@ final class DoccDocumentationTests: XCTestCase {
410
410
DidChangeTextDocumentNotification (
411
411
textDocument: VersionedTextDocumentIdentifier ( uri, version: 2 ) ,
412
412
contentChanges: [
413
- TextDocumentContentChangeEvent ( range: positions [ " 1️⃣ " ] ..< positions [ " 1️⃣ " ] , text: " n amazing " )
413
+ TextDocumentContentChangeEvent ( range: Range ( positions [ " 1️⃣ " ] ) , text: " n amazing " )
414
414
]
415
415
)
416
416
)
@@ -454,7 +454,7 @@ final class DoccDocumentationTests: XCTestCase {
454
454
DidChangeTextDocumentNotification (
455
455
textDocument: VersionedTextDocumentIdentifier ( uri, version: 2 ) ,
456
456
contentChanges: [
457
- TextDocumentContentChangeEvent ( range: positions [ " 1️⃣ " ] ..< positions [ " 1️⃣ " ] , text: " n amazing " )
457
+ TextDocumentContentChangeEvent ( range: Range ( positions [ " 1️⃣ " ] ) , text: " n amazing " )
458
458
]
459
459
)
460
460
)
@@ -531,7 +531,7 @@ fileprivate func renderDocumentation(
531
531
file: file,
532
532
line: line
533
533
)
534
- if let expectedPath = expectedPath {
534
+ if let expectedPath {
535
535
XCTAssertEqual (
536
536
renderNode. identifier. path,
537
537
" /documentation/ \( expectedPath) " ,
@@ -540,7 +540,7 @@ fileprivate func renderDocumentation(
540
540
line: line
541
541
)
542
542
}
543
- if let expectedContents = expectedContents {
543
+ if let expectedContents {
544
544
XCTAssertTrue (
545
545
renderNodeString. contains ( expectedContents) ,
546
546
" render node did not contain text \" \( expectedContents) \" at position \( marker) " ,
0 commit comments