Skip to content

Commit 20b23a2

Browse files
committed
Update closure expansion tests for improved formatting in swift-syntax
Adjustments for swiftlang/swift-syntax#2511
1 parent 331f16d commit 20b23a2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Tests/SourceKitLSPTests/SwiftCompletionTests.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ final class SwiftCompletionTests: XCTestCase {
10081008
insertText: """
10091009
myMap { ${1:Int} in
10101010
${2:Bool}
1011-
}
1011+
}
10121012
""",
10131013
insertTextFormat: .snippet,
10141014
textEdit: .textEdit(
@@ -1017,7 +1017,7 @@ final class SwiftCompletionTests: XCTestCase {
10171017
newText: """
10181018
myMap { ${1:Int} in
10191019
${2:Bool}
1020-
}
1020+
}
10211021
"""
10221022
)
10231023
)
@@ -1055,7 +1055,7 @@ final class SwiftCompletionTests: XCTestCase {
10551055
insertText: """
10561056
?.myMap { ${1:Int} in
10571057
${2:Bool}
1058-
}
1058+
}
10591059
""",
10601060
insertTextFormat: .snippet,
10611061
textEdit: .textEdit(
@@ -1064,7 +1064,7 @@ final class SwiftCompletionTests: XCTestCase {
10641064
newText: """
10651065
?.myMap { ${1:Int} in
10661066
${2:Bool}
1067-
}
1067+
}
10681068
"""
10691069
)
10701070
)
@@ -1103,9 +1103,9 @@ final class SwiftCompletionTests: XCTestCase {
11031103
insertText: """
11041104
myMap { ${1:Int} in
11051105
${2:Bool}
1106-
} _: { ${3:Int} in
1106+
} _: { ${3:Int} in
11071107
${4:String}
1108-
}
1108+
}
11091109
""",
11101110
insertTextFormat: .snippet,
11111111
textEdit: .textEdit(
@@ -1114,9 +1114,9 @@ final class SwiftCompletionTests: XCTestCase {
11141114
newText: """
11151115
myMap { ${1:Int} in
11161116
${2:Bool}
1117-
} _: { ${3:Int} in
1117+
} _: { ${3:Int} in
11181118
${4:String}
1119-
}
1119+
}
11201120
"""
11211121
)
11221122
)
@@ -1155,9 +1155,9 @@ final class SwiftCompletionTests: XCTestCase {
11551155
insertText: """
11561156
myMap { ${1:Int} in
11571157
${2:Bool}
1158-
} second: { ${3:Int} in
1158+
} second: { ${3:Int} in
11591159
${4:String}
1160-
}
1160+
}
11611161
""",
11621162
insertTextFormat: .snippet,
11631163
textEdit: .textEdit(
@@ -1166,9 +1166,9 @@ final class SwiftCompletionTests: XCTestCase {
11661166
newText: """
11671167
myMap { ${1:Int} in
11681168
${2:Bool}
1169-
} second: { ${3:Int} in
1169+
} second: { ${3:Int} in
11701170
${4:String}
1171-
}
1171+
}
11721172
"""
11731173
)
11741174
)

0 commit comments

Comments
 (0)