Skip to content

Commit da479d3

Browse files
committed
Add test case for trailing closure
1 parent cb8d4fc commit da479d3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tests/SwiftParserTest/IncrementalParsingTests.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,16 @@ public class IncrementalParsingTests: XCTestCase {
428428
"""
429429
)
430430
}
431+
432+
public func testTrailingClosure() {
433+
XCTExpectFailure("WIP: Add lookahead for incremental parse")
434+
assertIncrementalParse(
435+
"""
436+
foo() {}
437+
trailingClosure: ⏩️switch x {
438+
default: break
439+
}⏸️{}⏪️
440+
"""
441+
)
442+
}
431443
}

0 commit comments

Comments
 (0)