Skip to content

Commit 1c667dc

Browse files
author
Wang Lun
committed
fixed format issues
1 parent a2a20ab commit 1c667dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/SourceKitLSPTests/SwiftInterfaceTests.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,9 @@ final class SwiftInterfaceTests: XCTestCase {
229229
)
230230
let referenceDocumentUri = try XCTUnwrap(response?.locations?.only).uri
231231
let referenceDocument = try await project.testClient.send(GetReferenceDocumentRequest(uri: referenceDocumentUri))
232-
233232
let stringIndex = try XCTUnwrap(referenceDocument.content.firstRange(of: "-> String"))
234233
let (stringLine, stringColumn) = LineTable(referenceDocument.content)
235-
.lineAndUTF16ColumnOf(referenceDocument.content.index(stringIndex.lowerBound, offsetBy: 3))
234+
.lineAndUTF16ColumnOf(referenceDocument.content.index(stringIndex.lowerBound, offsetBy: 3))
236235
project.testClient.send(
237236
DidOpenTextDocumentNotification(
238237
textDocument: TextDocumentItem(
@@ -246,7 +245,7 @@ final class SwiftInterfaceTests: XCTestCase {
246245
let hover = try await project.testClient.send(
247246
HoverRequest(
248247
textDocument: TextDocumentIdentifier(referenceDocumentUri),
249-
position: Position(line: stringLine, utf16index: stringColumn)
248+
position: Position(line: stringLine, utf16index: stringColumn)
250249
)
251250
)
252251
XCTAssertNotNil(hover)

0 commit comments

Comments
 (0)