8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0f3642 + c6e1431 commit a36ed26Copy full SHA for a36ed26
Tests/SwiftParserTest/Expressions.swift
@@ -172,6 +172,15 @@ final class ExpressionTests: XCTestCase {
172
"""
173
"""#
174
)
175
+
176
+ AssertParse(
177
+ #"""
178
+ "\(()
179
+ """#,
180
+ diagnostics: [
181
+ // FIXME: Some diagnostics should be emitted for such broken input.
182
+ ]
183
+ )
184
}
185
186
func testStringLiterals() {
@@ -276,6 +285,17 @@ final class ExpressionTests: XCTestCase {
276
285
"\(x)"
277
286
278
287
288
289
290
+ ##"""
291
+ #^D0^#""""#^D1^#
292
+ """##,
293
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() {
0 commit comments