Skip to content

Commit 401725e

Browse files
committed
Add test case for trailing closure
1 parent 612163c commit 401725e

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
@@ -37,4 +37,16 @@ public class IncrementalParsingTests: XCTestCase {
3737
]
3838
)
3939
}
40+
41+
public func testTrailingClosure() {
42+
XCTExpectFailure("WIP: Add lookahead for incremental parse")
43+
assertIncrementalParse(
44+
"""
45+
foo() {}
46+
trailingClosure: ⏩️switch x {
47+
default: break
48+
}⏸️{}⏪️
49+
"""
50+
)
51+
}
4052
}

0 commit comments

Comments
 (0)