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.
1 parent 1159abd commit 05aec88Copy full SHA for 05aec88
Tests/SwiftParserTest/ExpressionTests.swift
@@ -900,6 +900,27 @@ final class ExpressionTests: XCTestCase {
900
]
901
)
902
}
903
+
904
+ func testFoo() {
905
+ AssertParse(
906
+ """
907
+ "This is unterminated1️⃣
908
+ x
909
+ """,
910
+ substructure: Syntax(
911
+ StringLiteralExprSyntax(
912
+ openQuote: .stringQuoteToken(),
913
+ segments: StringLiteralSegmentsSyntax([
914
+ .stringSegment(StringSegmentSyntax(content: .stringSegment("This is unterminated")))
915
+ ]),
916
+ closeQuote: .stringQuoteToken(presence: .missing)
917
+ )
918
+ ),
919
+ diagnostics: [
920
+ DiagnosticSpec(message: #"expected '"' to end string literal"#)
921
+ ]
922
923
+ }
924
925
926
final class MemberExprTests: XCTestCase {
0 commit comments