Skip to content

Commit fe5644b

Browse files
authored
Merge pull request #1929 from rintaro/swiftdiags-replace-trivia
[Tests] Update for swift-syntax FixIt changes
2 parents eb2a0f3 + 58c6938 commit fe5644b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/SourceKitLSPTests/CodeActionTests.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ final class CodeActionTests: XCTestCase {
540540

541541
func testCodeActionForFixItsProducedBySwiftSyntax() async throws {
542542
let project = try await MultiFileTestProject(files: [
543-
"test.swift": "protocol 1️⃣Multi 2️⃣ident 3️⃣{}",
543+
"test.swift": "protocol 1️⃣Multi2️⃣ 3️⃣ident 4️⃣{}",
544544
"compile_commands.json": "[]",
545545
])
546546

@@ -560,8 +560,8 @@ final class CodeActionTests: XCTestCase {
560560
edit: WorkspaceEdit(
561561
changes: [
562562
uri: [
563-
TextEdit(range: positions["1️⃣"]..<positions["2️⃣"], newText: "Multiident "),
564-
TextEdit(range: positions["2️⃣"]..<positions["3️⃣"], newText: ""),
563+
TextEdit(range: positions["1️⃣"]..<positions["2️⃣"], newText: "Multiident"),
564+
TextEdit(range: positions["3️⃣"]..<positions["4️⃣"], newText: ""),
565565
]
566566
]
567567
)
@@ -572,8 +572,8 @@ final class CodeActionTests: XCTestCase {
572572
edit: WorkspaceEdit(
573573
changes: [
574574
uri: [
575-
TextEdit(range: positions["1️⃣"]..<positions["2️⃣"], newText: "MultiIdent "),
576-
TextEdit(range: positions["2️⃣"]..<positions["3️⃣"], newText: ""),
575+
TextEdit(range: positions["1️⃣"]..<positions["2️⃣"], newText: "MultiIdent"),
576+
TextEdit(range: positions["3️⃣"]..<positions["4️⃣"], newText: ""),
577577
]
578578
]
579579
)

0 commit comments

Comments
 (0)