Skip to content

Commit 74f47b0

Browse files
committed
Update tests
1 parent 089faf8 commit 74f47b0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Tests/SwiftParserTest/DeclarationTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ final class DeclarationTests: XCTestCase {
745745
diagnostics: [
746746
DiagnosticSpec(locationMarker: "1️⃣", message: "expected 'func' in function"),
747747
DiagnosticSpec(locationMarker: "2️⃣", message: "expected parameter clause in function signature"),
748-
DiagnosticSpec(locationMarker: "3️⃣", message: "expected identifier in pound literal declaration"),
749-
DiagnosticSpec(locationMarker: "4️⃣", message: "expected identifier in pound literal declaration"),
748+
DiagnosticSpec(locationMarker: "3️⃣", message: "expected identifier in macro expansion"),
749+
DiagnosticSpec(locationMarker: "4️⃣", message: "expected identifier in macro expansion"),
750750
DiagnosticSpec(locationMarker: "5️⃣", message: #"unexpected code '25 "line-directive.swift"' in struct"#),
751751
]
752752
)

Tests/SwiftParserTest/ExpressionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ final class ExpressionTests: XCTestCase {
744744
"#keyPath((b:1️⃣)2️⃣",
745745
diagnostics: [
746746
DiagnosticSpec(locationMarker: "1️⃣", message: "expected value in tuple"),
747-
DiagnosticSpec(locationMarker: "2️⃣", message: "expected ')' to end pound literal declaration"),
747+
DiagnosticSpec(locationMarker: "2️⃣", message: "expected ')' to end macro expansion"),
748748
]
749749
)
750750
}

Tests/SwiftParserTest/translated/MultilinePoundDiagnosticArgRdar41154797Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class MultilinePoundDiagnosticArgRdar41154797Tests: XCTestCase {
2222
"""##,
2323
diagnostics: [
2424
DiagnosticSpec(message: #"expected '"""' to end string literal"#),
25-
DiagnosticSpec(message: "expected ')' to end pound literal declaration"),
25+
DiagnosticSpec(message: "expected ')' to end macro expansion"),
2626
]
2727
)
2828
}

Tests/SwiftParserTest/translated/PoundAssertTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class PoundAssertTests: XCTestCase {
4949
#assert(1️⃣, "error message")
5050
"""#,
5151
diagnostics: [
52-
DiagnosticSpec(message: "expected value in pound literal declaration")
52+
DiagnosticSpec(message: "expected value in macro expansion")
5353
]
5454
)
5555
}
@@ -63,7 +63,7 @@ final class PoundAssertTests: XCTestCase {
6363
""",
6464
diagnostics: [
6565
DiagnosticSpec(
66-
message: "expected ')' to end pound literal declaration",
66+
message: "expected ')' to end macro expansion",
6767
notes: [
6868
NoteSpec(message: "to match this opening '('")
6969
]
@@ -81,7 +81,7 @@ final class PoundAssertTests: XCTestCase {
8181
"""#,
8282
diagnostics: [
8383
DiagnosticSpec(
84-
message: "expected ')' to end pound literal declaration",
84+
message: "expected ')' to end macro expansion",
8585
notes: [
8686
NoteSpec(message: "to match this opening '('")
8787
]

0 commit comments

Comments
 (0)