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 82ff647 + 05aec88 commit da8e48fCopy full SHA for da8e48f
Tests/SwiftParserTest/ExpressionTests.swift
@@ -918,6 +918,27 @@ final class ExpressionTests: XCTestCase {
918
]
919
)
920
}
921
+
922
+ func testFoo() {
923
+ AssertParse(
924
+ """
925
+ "This is unterminated1️⃣
926
+ x
927
+ """,
928
+ substructure: Syntax(
929
+ StringLiteralExprSyntax(
930
+ openQuote: .stringQuoteToken(),
931
+ segments: StringLiteralSegmentsSyntax([
932
+ .stringSegment(StringSegmentSyntax(content: .stringSegment("This is unterminated")))
933
+ ]),
934
+ closeQuote: .stringQuoteToken(presence: .missing)
935
+ )
936
+ ),
937
+ diagnostics: [
938
+ DiagnosticSpec(message: #"expected '"' to end string literal"#)
939
+ ]
940
941
+ }
942
943
944
final class MemberExprTests: XCTestCase {
0 commit comments