Skip to content

Commit 351b319

Browse files
committed
Fix failing test case
1 parent 8198297 commit 351b319

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/SwiftParserTest/Declarations.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -717,13 +717,15 @@ final class DeclarationTests: XCTestCase {
717717
AssertParse(
718718
"""
719719
struct S {
720-
1️⃣/ 2️⃣###line 25 "line-directive.swift"
720+
1️⃣/ 2️⃣#3️⃣#4️⃣#line 5️⃣25 "line-directive.swift"
721721
}
722722
""",
723723
diagnostics: [
724724
DiagnosticSpec(locationMarker: "1️⃣", message: "expected 'func' in function"),
725725
DiagnosticSpec(locationMarker: "2️⃣", message: "expected parameter clause in function signature"),
726-
DiagnosticSpec(locationMarker: "2️⃣", message: #"unexpected code '###line 25 "line-directive.swift"' in struct"#)
726+
DiagnosticSpec(locationMarker: "3️⃣", message: "expected identifier in pound literal declaration"),
727+
DiagnosticSpec(locationMarker: "4️⃣", message: "expected identifier in pound literal declaration"),
728+
DiagnosticSpec(locationMarker: "5️⃣", message: #"unexpected code '25 "line-directive.swift"' in struct"#)
727729
]
728730
)
729731
}

0 commit comments

Comments
 (0)