Skip to content

Commit f5dd267

Browse files
committed
share #^DIAG^# marker
1 parent b546025 commit f5dd267

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Tests/SwiftParserTest/Expressions.swift

+9-9
Original file line numberDiff line numberDiff line change
@@ -313,31 +313,31 @@ final class ExpressionTests: XCTestCase {
313313

314314
AssertParse(
315315
##"""
316-
#"#^DQ^##^DD^#
316+
#"#^DIAG^#
317317
"""##,
318318
diagnostics: [
319-
DiagnosticSpec(locationMarker: "DQ", message: #"Expected '"' in string literal"#),
320-
DiagnosticSpec(locationMarker: "DD", message: #"Expected '#' in string literal"#)
319+
DiagnosticSpec(message: #"Expected '"' in string literal"#),
320+
DiagnosticSpec(message: #"Expected '#' in string literal"#)
321321
]
322322
)
323323

324324
AssertParse(
325325
##"""
326-
#"""#^DQ^##^DD^#
326+
#"""#^DIAG^#
327327
"""##,
328328
diagnostics: [
329-
DiagnosticSpec(locationMarker: "DQ", message: #"Expected '"""' in string literal"#),
330-
DiagnosticSpec(locationMarker: "DD", message: #"Expected '#' in string literal"#)
329+
DiagnosticSpec(message: #"Expected '"""' in string literal"#),
330+
DiagnosticSpec(message: #"Expected '#' in string literal"#)
331331
]
332332
)
333333

334334
AssertParse(
335335
##"""
336-
#"""a#^DQ^##^DD^#
336+
#"""a#^DIAG^#
337337
"""##,
338338
diagnostics: [
339-
DiagnosticSpec(locationMarker: "DQ", message: #"Expected '"""' in string literal"#),
340-
DiagnosticSpec(locationMarker: "DD", message: #"Expected '#' in string literal"#)
339+
DiagnosticSpec(message: #"Expected '"""' in string literal"#),
340+
DiagnosticSpec(message: #"Expected '#' in string literal"#)
341341
]
342342
)
343343
}

0 commit comments

Comments
 (0)