File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,15 @@ final class ExpressionTests: XCTestCase {
172
172
"""
173
173
"""#
174
174
)
175
+
176
+ AssertParse (
177
+ #"""
178
+ "\(()
179
+ """# ,
180
+ diagnostics: [
181
+ // FIXME: Some diagnostics should be emitted for such broken input.
182
+ ]
183
+ )
175
184
}
176
185
177
186
func testStringLiterals( ) {
@@ -276,6 +285,17 @@ final class ExpressionTests: XCTestCase {
276
285
"\(x)"
277
286
"""#
278
287
)
288
+
289
+ AssertParse (
290
+ ##"""
291
+ #^D0^#""""#^D1^#
292
+ """## ,
293
+ diagnostics: [
294
+ // FIXME: Weird diagnostics doesn't recover code even if follow it
295
+ DiagnosticSpec ( locationMarker: " D0 " , message: " Expected ' \" ' in expression " ) ,
296
+ DiagnosticSpec ( locationMarker: " D1 " , message: " Expected ' \" ' in expression " )
297
+ ]
298
+ )
279
299
}
280
300
281
301
func testSingleQuoteStringLiteral( ) {
You can’t perform that action at this time.
0 commit comments