File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ final class FormattingTests: XCTestCase {
43
43
let edits = try XCTUnwrap ( response)
44
44
let formattedSource = apply ( edits: edits, to: source)
45
45
46
+ XCTAssert ( edits. allSatisfy { $0. newText. allSatisfy ( \. isWhitespace) } )
46
47
XCTAssertEqual (
47
48
formattedSource,
48
49
"""
@@ -283,6 +284,7 @@ final class FormattingTests: XCTestCase {
283
284
let edits = try XCTUnwrap ( response)
284
285
let formattedSource = apply ( edits: edits, to: source)
285
286
287
+ XCTAssert ( edits. allSatisfy { $0. newText. allSatisfy ( \. isWhitespace) } )
286
288
XCTAssertEqual (
287
289
formattedSource,
288
290
#"""
Original file line number Diff line number Diff line change @@ -75,14 +75,14 @@ final class OnTypeFormattingTests: XCTestCase {
75
75
let ( _, unmarkedSource) = extractMarkers ( source)
76
76
let formattedSource = apply ( edits: edits, to: unmarkedSource)
77
77
78
+ XCTAssert ( edits. allSatisfy { $0. newText. allSatisfy ( \. isWhitespace) } )
78
79
XCTAssertEqual (
79
80
formattedSource,
80
81
"""
81
82
func foo() {
82
83
if let SomeReallyLongVar = Some.More.Stuff(), let a = myfunc() {
83
84
}
84
85
}
85
-
86
86
"""
87
87
)
88
88
}
You can’t perform that action at this time.
0 commit comments