Skip to content

Commit

Permalink
more test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbastien committed Jan 16, 2025
1 parent fa4b92a commit 3842f88
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Tests/SourceKitLSPTests/DoccDocumentationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ final class DoccDocumentationTests: XCTestCase {
DidChangeTextDocumentNotification(
textDocument: VersionedTextDocumentIdentifier(uri, version: 2),
contentChanges: [
TextDocumentContentChangeEvent(range: positions["1️⃣"]..<positions["1️⃣"], text: "very ")
TextDocumentContentChangeEvent(range: Range(positions["1️⃣"]), text: "very ")
]
)
)
Expand Down Expand Up @@ -366,7 +366,7 @@ final class DoccDocumentationTests: XCTestCase {
DidChangeTextDocumentNotification(
textDocument: VersionedTextDocumentIdentifier(uri, version: 2),
contentChanges: [
TextDocumentContentChangeEvent(range: positions["1️⃣"]..<positions["1️⃣"], text: " very")
TextDocumentContentChangeEvent(range: Range(positions["1️⃣"]), text: " very")
]
)
)
Expand Down Expand Up @@ -410,7 +410,7 @@ final class DoccDocumentationTests: XCTestCase {
DidChangeTextDocumentNotification(
textDocument: VersionedTextDocumentIdentifier(uri, version: 2),
contentChanges: [
TextDocumentContentChangeEvent(range: positions["1️⃣"]..<positions["1️⃣"], text: "n amazing")
TextDocumentContentChangeEvent(range: Range(positions["1️⃣"]), text: "n amazing")
]
)
)
Expand Down Expand Up @@ -454,7 +454,7 @@ final class DoccDocumentationTests: XCTestCase {
DidChangeTextDocumentNotification(
textDocument: VersionedTextDocumentIdentifier(uri, version: 2),
contentChanges: [
TextDocumentContentChangeEvent(range: positions["1️⃣"]..<positions["1️⃣"], text: "n amazing")
TextDocumentContentChangeEvent(range: Range(positions["1️⃣"]), text: "n amazing")
]
)
)
Expand Down Expand Up @@ -531,7 +531,7 @@ fileprivate func renderDocumentation(
file: file,
line: line
)
if let expectedPath = expectedPath {
if let expectedPath {
XCTAssertEqual(
renderNode.identifier.path,
"/documentation/\(expectedPath)",
Expand All @@ -540,7 +540,7 @@ fileprivate func renderDocumentation(
line: line
)
}
if let expectedContents = expectedContents {
if let expectedContents {
XCTAssertTrue(
renderNodeString.contains(expectedContents),
"render node did not contain text \"\(expectedContents)\" at position \(marker)",
Expand Down

0 comments on commit 3842f88

Please sign in to comment.